|
|
@ -171,7 +171,8 @@ export class GatewayService { |
|
|
|
|
|
|
|
|
const fcmMessages: Message[] = [] |
|
|
const fcmMessages: Message[] = [] |
|
|
|
|
|
|
|
|
for (const recipient of recipients) { |
|
|
|
|
|
|
|
|
for (let recipient of recipients) { |
|
|
|
|
|
recipient = recipient.replace(/\s+/g, "") |
|
|
const sms = await this.smsModel.create({ |
|
|
const sms = await this.smsModel.create({ |
|
|
device: device._id, |
|
|
device: device._id, |
|
|
smsBatch: smsBatch._id, |
|
|
smsBatch: smsBatch._id, |
|
|
@ -366,7 +367,8 @@ export class GatewayService { |
|
|
continue |
|
|
continue |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (const recipient of recipients) { |
|
|
|
|
|
|
|
|
for (let recipient of recipients) { |
|
|
|
|
|
recipient = recipient.replace(/\s+/g, "") |
|
|
const sms = await this.smsModel.create({ |
|
|
const sms = await this.smsModel.create({ |
|
|
device: device._id, |
|
|
device: device._id, |
|
|
smsBatch: smsBatch._id, |
|
|
smsBatch: smsBatch._id, |
|
|
|