diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 39b2900d2..f7eb8100a 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') diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index 05384782e..6ef09a9c9 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -82,13 +82,13 @@ 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, ]) ->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, ])