This commit is contained in:
lxy 2024-08-29 10:04:18 +08:00
parent 4c7c620599
commit ce29445d4d
1 changed files with 11 additions and 10 deletions

View File

@ -340,16 +340,17 @@ async function createNotification(message: CreateMessageData, context: BRC<Entit
break;
}
case 'email': {
const emailNotification =
await tryMakeEmailNotification(
message,
context
);
if (emailNotification) {
notificationDatas.push(
emailNotification
);
}
const emailNotification =
await tryMakeEmailNotification(
message,
context
);
if (emailNotification) {
notificationDatas.push(
emailNotification
);
}
break;
}
default: {
assert(channel === 'sms'); // 目前只支持三种