feat(professors,sms): merge professor with users, add existing user link, professor portal endpoint, and SMS bypass list
This commit is contained in:
@@ -22,7 +22,7 @@ const redactSmsParams = (params = []) => (
|
||||
);
|
||||
|
||||
const sendSingleSms = async (mobile, templateId, params = []) => {
|
||||
const channelState = await getMessagingChannelState('sms');
|
||||
const channelState = await getMessagingChannelState('sms', mobile);
|
||||
|
||||
logger.info('[SMS] About to send notification:', {
|
||||
mobile,
|
||||
@@ -30,6 +30,7 @@ const sendSingleSms = async (mobile, templateId, params = []) => {
|
||||
params: redactSmsParams(params),
|
||||
SMS_ENABLED: channelState.envEnabled,
|
||||
dashboardEnabled: channelState.dbEnabled,
|
||||
bypassActive: Boolean(channelState.bypass)
|
||||
});
|
||||
|
||||
if (!channelState.enabled) {
|
||||
|
||||
Reference in New Issue
Block a user