AI review fixes

This commit is contained in:
Matej Bačo
2026-02-09 17:12:30 +01:00
parent 29915ddd3b
commit dafa97879c
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1186,7 +1186,10 @@ Http::get('/v1/projects/:projectId/keys')
}
$keyId = $cursor->getValue();
$cursorDocument = $dbForPlatform->getDocument('keys', $keyId);
$cursorDocument = $dbForPlatform->getDocument('keys', $keyId, [
Query::equal('resourceType', ['projects']),
Query::equal('resourceInternalId', [$project->getSequence()]),
]);
if ($cursorDocument->isEmpty()) {
throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Key '{$keyId}' for the 'cursor' value not found.");
@@ -3370,7 +3370,7 @@ class ProjectsConsoleClientTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'queries' => [
Query::orderDesc('')->toString(),
Query::orderDesc('$createdAt')->toString(),
]
]);