Update sms-manager.ts (#20985)
This commit is contained in:
1 parent
6ebf0db389
commit
edd80c056c
1 file changed
+2
-1
@@ -37,7 +37,8 @@ const handleSendingSMS = ({
|
||||
if (!team?.parent?.isOrganization) return;
|
||||
|
||||
await checkSMSRateLimit({ identifier: `handleSendingSMS:team:${teamId}`, rateLimitingType: "sms" });
|
||||
const sms = twilio.sendSMS(reminderPhone, smsMessage, senderID, teamId);
|
||||
const sanitizedMessage = smsMessage.replace(///g, "/");
|
||||
const sms = twilio.sendSMS(reminderPhone, sanitizedMessage, senderID, teamId);
|
||||
resolve(sms);
|
||||
} catch (e) {
|
||||
reject(console.error(`twilio.sendSMS failed`, e));
|
||||
|
||||
Reference in new issue
Block a user