Fix param type

This commit is contained in:
Jake Barnby
2024-12-03 22:50:40 +13:00
parent ab900d16d4
commit fa49244b4b
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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) {