Update seat map and sms payload

This commit is contained in:
Roba Boru
2026-06-18 22:03:12 +03:00
parent e7dcf71519
commit 804d67ecc5
8 changed files with 419 additions and 201 deletions

View File

@@ -34,7 +34,7 @@ export class SingleMessageDto {
})
@IsString()
@IsNotEmpty()
sms: string;
message: string;
}
export class BulkMessagesDto {

View File

@@ -21,7 +21,7 @@ export class NotificationsService {
) {
this.channels = new Map<NotificationChannelType, NotificationChannel>([
['EMAIL', { send: (to, subject, body) => this.emailClient.sendEmail({ to, subject, text: body }).then(() => true) }],
['SMS', { send: (to, _subject, body) => this.smsClient.sendSms({ to, sms: body }).then(() => true) }],
['SMS', { send: (to, _subject, body) => this.smsClient.sendSms({ to, message: body }).then(() => true) }],
['PUSH', this.pushAdapter as NotificationChannel],
]);
}