refactor: user delete (#23163)

This commit is contained in:
Jason Rasmussen
2025-10-22 12:54:29 -04:00
committed by GitHub
parent 8c27ba3e52
commit 834e52fda6
6 changed files with 15 additions and 12 deletions
@@ -202,6 +202,11 @@ export class NotificationService extends BaseService {
}
}
@OnEvent({ name: 'UserDelete' })
onUserDelete({ id }: ArgOf<'UserDelete'>) {
this.eventRepository.clientBroadcast('on_user_delete', id);
}
@OnEvent({ name: 'AlbumUpdate' })
async onAlbumUpdate({ id, recipientId }: ArgOf<'AlbumUpdate'>) {
await this.jobRepository.removeJob(JobName.NotifyAlbumUpdate, `${id}/${recipientId}`);