Skip to content

Commit adbcd2e

Browse files
AchoArnoldCopilot
andcommitted
feat(listeners): pass ExactSendTime to PhoneNotificationService from event
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9af04e3 commit adbcd2e

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

api/pkg/listeners/phone_notification_listener.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ func (listener *PhoneNotificationListener) onMessageAPISent(ctx context.Context,
5353
}
5454

5555
sendParams := &services.PhoneNotificationScheduleParams{
56-
UserID: payload.UserID,
57-
Owner: payload.Owner,
58-
Contact: payload.Contact,
59-
Content: payload.Content,
60-
SIM: payload.SIM,
61-
Encrypted: payload.Encrypted,
62-
Source: event.Source(),
63-
MessageID: payload.MessageID,
56+
UserID: payload.UserID,
57+
Owner: payload.Owner,
58+
Contact: payload.Contact,
59+
Content: payload.Content,
60+
SIM: payload.SIM,
61+
Encrypted: payload.Encrypted,
62+
Source: event.Source(),
63+
MessageID: payload.MessageID,
64+
ExactSendTime: payload.ExactSendTime,
65+
ScheduledSendTime: payload.ScheduledSendTime,
6466
}
6567

6668
if err := listener.service.Schedule(ctx, sendParams); err != nil {

0 commit comments

Comments
 (0)