From c04734048f0764617d6405a3f2bdb9eb2b1a1194 Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Thu, 25 Aug 2022 11:05:01 +0300 Subject: [PATCH 1/3] Update app/controllers/api/databases.php Co-authored-by: Vincent (Wen Yu) Ge --- app/controllers/api/databases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 142d5a599f..eba69e69a5 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -1918,7 +1918,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents') ->param('cursor', '', new UID(), 'ID of the document used as the starting point for the query, excluding the document itself. Should be used for efficient pagination when working with large sets of data. [learn more about pagination](https://appwrite.io/docs/pagination)', true) ->param('cursorDirection', Database::CURSOR_AFTER, new WhiteList([Database::CURSOR_AFTER, Database::CURSOR_BEFORE]), 'Direction of the cursor, can be either \'before\' or \'after\'.', true) ->param('orderAttributes', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of attributes used to sort results. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' order attributes are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true) - ->param('orderTypes', [], new ArrayList(new WhiteList([Database::ORDER_DESC, Database::ORDER_ASC], true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of order directions for sorting attribtues. Possible values are DESC for descending order, or ASC for ascending order. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' order types are allowed.', true) + ->param('orderTypes', [], new ArrayList(new WhiteList([Database::ORDER_DESC, Database::ORDER_ASC], true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of order directions for sorting attributes. Possible values are DESC for descending order or ASC for ascending order. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' order types are allowed.', true) ->inject('response') ->inject('dbForProject') ->inject('mode') From 26a2569b8e531e3dc50dfef6c9c6a6d5c9d477ac Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Thu, 25 Aug 2022 11:11:08 +0300 Subject: [PATCH 2/3] Update src/Appwrite/Utopia/Response/Model/Func.php Co-authored-by: Vincent (Wen Yu) Ge --- src/Appwrite/Utopia/Response/Model/Func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index 05384782e4..89f739cf58 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -82,7 +82,7 @@ class Func extends Model ]) ->addRule('scheduleNext', [ 'type' => self::TYPE_DATETIME, - 'description' => 'Function next scheduled execution date in Datetime.', + 'description' => 'Function's next scheduled execution time in Datetime.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) From deb5164eb3d56406f0164553942a4d7e8a559949 Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Thu, 25 Aug 2022 11:11:17 +0300 Subject: [PATCH 3/3] Update src/Appwrite/Utopia/Response/Model/Func.php Co-authored-by: Vincent (Wen Yu) Ge --- src/Appwrite/Utopia/Response/Model/Func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index 89f739cf58..6ef09a9c9d 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -88,7 +88,7 @@ class Func extends Model ]) ->addRule('schedulePrevious', [ 'type' => self::TYPE_DATETIME, - 'description' => 'Function Previous scheduled execution date in Datetime.', + 'description' => 'Function's previous scheduled execution time in Datetime.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ])