diff --git a/src/api/notifications/notifications.controller.ts b/src/api/notifications/notifications.controller.ts index 5981b419d..982df51e6 100644 --- a/src/api/notifications/notifications.controller.ts +++ b/src/api/notifications/notifications.controller.ts @@ -448,8 +448,7 @@ export class NotificationsController { data.dispatch = data.dispatch ?? {}; data.dispatch.candidates = data.dispatch.candidates ?? subCandidates.map((e) => e.id.toString()); - // todo: pick more props is needed - data.dispatch.req = pick(this.req, ['user', 'protocol', 'hostname']); + data.dispatch.req ??= pick(this.req, ['user', 'protocol', 'hostname']); await this.notificationsService.updateById( data.id, {