mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: added requires scopes, fix call method
This commit is contained in:
@@ -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()), [
|
||||
|
||||
Reference in New Issue
Block a user