1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Fix scheduledAt not updated

This commit is contained in:
Jake Barnby 2024-02-26 18:46:26 +13:00
parent 36845edc2f
commit a89c0540ad
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -3309,6 +3309,10 @@ App::patch('/v1/messaging/messages/email/:messageId')
$dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule);
}
if (!\is_null($scheduledAt)) {
$message->setAttribute('scheduledAt', $scheduledAt);
}
if (!\is_null($topics)) {
$message->setAttribute('topics', $topics);
}
@ -3456,6 +3460,10 @@ App::patch('/v1/messaging/messages/sms/:messageId')
$dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule);
}
if (!\is_null($scheduledAt)) {
$message->setAttribute('scheduledAt', $scheduledAt);
}
if (!\is_null($topics)) {
$message->setAttribute('topics', $topics);
}
@ -3591,6 +3599,10 @@ App::patch('/v1/messaging/messages/push/:messageId')
$dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule);
}
if (!\is_null($scheduledAt)) {
$message->setAttribute('scheduledAt', $scheduledAt);
}
if (!\is_null($topics)) {
$message->setAttribute('topics', $topics);
}