mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 03:35:12 +00:00
fix lint / TS errors in create-notification.ts
This commit is contained in:
parent
8a34d8e9d2
commit
c5f1279d4b
1 changed files with 2 additions and 2 deletions
|
@ -251,9 +251,9 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
|
|||
}];
|
||||
|
||||
case 'edited':
|
||||
return [t('_notification.edited', { name: getUserName(data.body.user) }), {
|
||||
return [i18n.ts._notification.edited, {
|
||||
body: data.body.note.text ?? '',
|
||||
icon: data.body.user.avatarUrl,
|
||||
icon: data.body.user.avatarUrl ?? undefined,
|
||||
badge: iconUrl('messages'),
|
||||
data,
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue