1
0
Fork 0
mirror of synced 2024-08-02 20:12:01 +12:00

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
This commit is contained in:
Steven Nguyen 2024-01-02 23:04:26 +00:00
parent fae7a758ff
commit 45ee8a11a5
No known key found for this signature in database
GPG key ID: 22EB8611C67E9E5C

View file

@ -5,16 +5,12 @@ namespace Appwrite\Utopia\Database\Validator\Queries;
class Messages extends Base class Messages extends Base
{ {
public const ALLOWED_ATTRIBUTES = [ public const ALLOWED_ATTRIBUTES = [
'topics', 'scheduledAt',
'users',
'targets',
'providerId',
'deliveredAt', 'deliveredAt',
'deliveredTo', 'deliveredTotal',
'deliveryErrors',
'status', 'status',
'description', 'description',
'data' 'providerType',
]; ];
/** /**