Compare commits

...
2 Commits
Author SHA1 Message Date
Israel Abebe 3227fb6696 Merge pull request #127 from yetmgetaewunetu/dev
removed white spaces from recepient
2025-09-01 11:31:52 +03:00
yetmgeta e5b63dbb6a removed white spaces from recepient 2025-08-25 22:38:22 +03:00
+5 -3
View File
@@ -171,7 +171,8 @@ export class GatewayService {
const fcmMessages: Message[] = []
for (const recipient of recipients) {
for (let recipient of recipients) {
recipient = recipient.replace(/\s+/g, "")
const sms = await this.smsModel.create({
device: device._id,
smsBatch: smsBatch._id,
@@ -366,13 +367,14 @@ export class GatewayService {
continue
}
for (const recipient of recipients) {
for (let recipient of recipients) {
recipient = recipient.replace(/\s+/g, "")
const sms = await this.smsModel.create({
device: device._id,
smsBatch: smsBatch._id,
message: message,
type: SMSType.SENT,
recipient,
recipient,
requestedAt: new Date(),
status: 'pending',
})