diff --git a/common/models/subscription.js b/common/models/subscription.js index 2687b02..5893fd7 100644 --- a/common/models/subscription.js +++ b/common/models/subscription.js @@ -190,7 +190,7 @@ module.exports = function (Subscription) { } switch (data.channel) { case 'sms': - Subscription.sendSMS(data.userChannelId, textBody, null, cb) + Subscription.sendSMS(data.userChannelId, textBody, data, cb) break default: { let mailOptions = { @@ -416,7 +416,7 @@ module.exports = function (Subscription) { this, options.httpContext ) - Subscription.sendSMS(this.userChannelId, textBody) + Subscription.sendSMS(this.userChannelId, textBody, this) break case 'email': { var subject = Subscription.mailMerge(