mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix param type
This commit is contained in:
@@ -2918,7 +2918,7 @@ App::post('/v1/messaging/messages/push')
|
||||
->param('sound', '', new Text(256), 'Sound for push notification. Available only for Android and iOS Platform.', true)
|
||||
->param('color', '', new Text(256), 'Color for push notification. Available only for Android Platform.', true)
|
||||
->param('tag', '', new Text(256), 'Tag for push notification. Available only for Android Platform.', true)
|
||||
->param('badge', '', new Text(256), 'Badge for push notification. Available only for iOS Platform.', true)
|
||||
->param('badge', 0, new Integer(), 'Badge for push notification. Available only for iOS Platform.', true)
|
||||
->param('contentAvailable', false, new Boolean(), 'Content available for push notification. Available only for iOS Platform.', true)
|
||||
->param('draft', false, new Boolean(), 'Is message a draft', true)
|
||||
->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true)
|
||||
|
||||
@@ -333,7 +333,6 @@ class Messaging extends Action
|
||||
$message->setAttribute('status', MessageStatus::SENT);
|
||||
}
|
||||
|
||||
|
||||
$message->removeAttribute('to');
|
||||
|
||||
foreach ($providers as $provider) {
|
||||
|
||||
Reference in New Issue
Block a user