fix(backend): アクセストークンを削除すると、通知が取得できなくなる場合がある問題を修正

This commit is contained in:
syuilo
2023-10-31 11:45:03 +09:00
parent 56c5da97e6
commit a35fe29ef4
3 changed files with 6 additions and 9 deletions

View File

@@ -42,8 +42,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.notificationService.createNotification(user.id, 'app', {
appAccessTokenId: token ? token.id : null,
customBody: ps.body,
customHeader: ps.header,
customIcon: ps.icon,
customHeader: ps.header ?? token?.name,
customIcon: ps.icon ?? token?.iconUrl,
});
});
}