appwrite/src/Appwrite/Utopia/Database/Validator/Queries/Messages.php
Steven Nguyen 45ee8a11a5
Update allowed attributes list messages queries
Remove the following because queries on arrays/JSON are not supported:

- topics
- users
- targets
- deliveryErrors
- data

Remove the following because they don't exist:
- providerId
- deliveredTo

Add the following as an allowed attribute so it can be queried on the
Console:

- scheduledAt
- deliveredTotal
- providerType
2024-01-17 02:39:09 +00:00

24 lines
445 B
PHP

<?php
namespace Appwrite\Utopia\Database\Validator\Queries;
class Messages extends Base
{
public const ALLOWED_ATTRIBUTES = [
'scheduledAt',
'deliveredAt',
'deliveredTotal',
'status',
'description',
'providerType',
];
/**
* Expression constructor
*
*/
public function __construct()
{
parent::__construct('messages', self::ALLOWED_ATTRIBUTES);
}
}