mirror of
https://github.com/vernu/textbee.git
synced 2026-09-03 03:29:58 +03:00
Compare commits
2
Commits
183dbeb29a
...
3227fb6696
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3227fb6696 | ||
|
|
e5b63dbb6a |
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user