mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
chore: added requires scopes, fix call method
This commit is contained in:
parent
97ed0dc89c
commit
ba0a6f0097
2 changed files with 4 additions and 2 deletions
|
|
@ -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()), [
|
||||
|
|
|
|||
Loading…
Reference in a new issue