From 136cc5fe46ccaf622973b9211ad6c28dc50ebfb3 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 4 Dec 2024 05:45:43 +0000 Subject: [PATCH] update put request --- .../Platform/Modules/DevKeys/Http/DevKeys/UpdateKey.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/DevKeys/Http/DevKeys/UpdateKey.php b/src/Appwrite/Platform/Modules/DevKeys/Http/DevKeys/UpdateKey.php index 5c6ded23c0..de29b40960 100644 --- a/src/Appwrite/Platform/Modules/DevKeys/Http/DevKeys/UpdateKey.php +++ b/src/Appwrite/Platform/Modules/DevKeys/Http/DevKeys/UpdateKey.php @@ -36,7 +36,7 @@ class UpdateKey extends Action ->param('projectId', '', new UID(), 'Project unique ID.') ->param('keyId', '', new UID(), 'Key unique ID.') ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') - ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', true) + ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.') ->inject('response') ->inject('dbForConsole') ->callback(fn ($projectId, $keyId, $name, $expire, $response, $dbForConsole) => $this->action($projectId, $keyId, $name, $expire, $response, $dbForConsole)); @@ -61,7 +61,7 @@ class UpdateKey extends Action $key ->setAttribute('name', $name) - ->setAttribute('expire', $expire ?? $key->getAttribute('expire')); + ->setAttribute('expire', $expire); $dbForConsole->updateDocument('devKeys', $key->getId(), $key);