Fix base list doc desc

This commit is contained in:
Jake Barnby 2025-08-21 01:15:53 +12:00
parent 75bbd1b47a
commit ef45001cec
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -24,7 +24,14 @@ class BaseList extends Model
* @param bool $paging
* @param bool $public
*/
public function __construct(string $name, string $type, string $key, string $model, bool $paging = true, bool $public = true)
public function __construct(
string $name,
string $type,
string $key,
string $model,
bool $paging = true,
bool $public = true
)
{
$this->name = $name;
$this->type = $type;
@ -40,9 +47,9 @@ class BaseList extends Model
];
if (\in_array($name, $namesWithCap)) {
$description = 'Total number of ' . $key . ' rows that matched your query used as reference for offset pagination. When the `total` number of ' . $key . ' rows available is greater than 5000, total returned will be capped at 5000, and cursor pagination should be used. Read more about [pagination](https://appwrite.io/docs/pagination).';
$description = 'Total number of ' . $key . ' that matched your query used as reference for offset pagination. When the `total` number of ' . $key . ' rows available is greater than 5000, total returned will be capped at 5000, and cursor pagination should be used. Read more about [pagination](https://appwrite.io/docs/pagination).';
} else {
$description = 'Total number of ' . $key . ' rows that matched your query.';
$description = 'Total number of ' . $key . ' that matched your query.';
}
$this->addRule('total', [