Fix scheduledAt not updated
This commit is contained in:
parent
36845edc2f
commit
a89c0540ad
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue