refactor: job events (#23161)

This commit is contained in:
Jason Rasmussen
2025-10-22 12:16:55 -04:00
committed by GitHub
parent cd8d66f5dd
commit 8c27ba3e52
7 changed files with 75 additions and 29 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ export class NotificationService extends BaseService {
await this.notificationRepository.cleanup();
}
@OnEvent({ name: 'JobFailed' })
async onJobFailed({ job, error }: ArgOf<'JobFailed'>) {
@OnEvent({ name: 'JobError' })
async onJobError({ job, error }: ArgOf<'JobError'>) {
const admin = await this.userRepository.getAdmin();
if (!admin) {
return;