This commit is contained in:
syuilo
2020-03-29 10:49:43 +09:00
parent 52feba0e3a
commit bb835a6e8a
4 changed files with 7 additions and 7 deletions

View File

@ -46,8 +46,8 @@ export class NotificationRepository extends Repository<Notification> {
} : {}),
...(notification.type === 'app' ? {
body: notification.customBody,
header: notification.customHeader || token!.name,
icon: notification.customIcon || token!.iconUrl,
header: notification.customHeader || token?.name,
icon: notification.customIcon || token?.iconUrl,
} : {}),
});
}