「両方」オプションを実装
This commit is contained in:
parent
fd8d7ed37b
commit
288c594f27
6 changed files with 52 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue