chore: added requires scopes, fix call method

This commit is contained in:
Chirag Aggarwal
2025-02-05 14:14:03 +00:00
parent 97ed0dc89c
commit ba0a6f0097
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -95,7 +95,9 @@ trait ProjectCustom
'subscribers.write',
'subscribers.read',
'migrations.write',
'migrations.read'
'migrations.read',
'tokens.read',
'tokens.write',
],
]);
@@ -83,7 +83,7 @@ class TokensCustomServerTest extends Scope
$tokenId = $data['tokenId'];
$expiry = DateTime::now();
$res = $this->client->call(Client::METHOD_PUT, '/tokens/' . $tokenId, array_merge([
$res = $this->client->call(Client::METHOD_PATCH, '/tokens/' . $tokenId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [