1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Fix listVariables returing all variables

This commit is contained in:
Matej Bačo 2022-09-09 08:05:33 +00:00
parent 0a9a84e357
commit fd6a3ed30c
2 changed files with 10 additions and 7 deletions

View file

@ -1376,6 +1376,9 @@ App::get('/v1/functions/:functionId/variables')
$queries[] = Query::search('search', $search);
}
// Apply internal queries
$queries[] = Query::equal('functionInternalId', [$function->getInternalId()]);
// Get cursor document if there was a cursor query
$cursor = Query::getByType($queries, Query::TYPE_CURSORAFTER, Query::TYPE_CURSORBEFORE);
$cursor = reset($cursor);

14
composer.lock generated
View file

@ -2060,16 +2060,16 @@
},
{
"name": "utopia-php/database",
"version": "0.25.1",
"version": "0.25.2",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "9d013ce3c111d1477d7986483f1003dcab2b9d14"
"reference": "140bbedf1c4d622990fb94d26681fcca235cd5b9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/9d013ce3c111d1477d7986483f1003dcab2b9d14",
"reference": "9d013ce3c111d1477d7986483f1003dcab2b9d14",
"url": "https://api.github.com/repos/utopia-php/database/zipball/140bbedf1c4d622990fb94d26681fcca235cd5b9",
"reference": "140bbedf1c4d622990fb94d26681fcca235cd5b9",
"shasum": ""
},
"require": {
@ -2118,9 +2118,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/database/issues",
"source": "https://github.com/utopia-php/database/tree/0.25.1"
"source": "https://github.com/utopia-php/database/tree/0.25.2"
},
"time": "2022-09-07T14:47:52+00:00"
"time": "2022-09-09T03:58:01+00:00"
},
{
"name": "utopia-php/domains",
@ -5384,5 +5384,5 @@
"platform-overrides": {
"php": "8.0"
},
"plugin-api-version": "2.2.0"
"plugin-api-version": "2.3.0"
}