0
0
Fork 0

「両方」オプションを実装

This commit is contained in:
Xeltica 2022-02-16 01:02:24 +09:00
parent fd8d7ed37b
commit 288c594f27
6 changed files with 52 additions and 19 deletions

View file

@ -16,6 +16,12 @@ export const sendAlert = async (user: User) => {
case 'notification':
await sendNotificationAlert(text, user);
break;
case 'both':
await Promise.all([
sendNotificationAlert(text, user),
sendNoteAlert(text, user),
]);
break;
}
};