690513:0920 Refactor Workflow module: Lint error #01
CI / CD Pipeline / build (push) Failing after 10m44s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-05-13 09:20:49 +07:00
parent e218fc826c
commit 5537d20152
299 changed files with 27326 additions and 2501 deletions
@@ -19,7 +19,7 @@ export class NotificationTriggerService {
@InjectRepository(User)
private readonly userRepo: Repository<User>,
private readonly notificationService: NotificationService,
private readonly implicationsService: ImplicationsService,
private readonly implicationsService: ImplicationsService
) {}
/**
@@ -30,14 +30,16 @@ export class NotificationTriggerService {
responseCodePublicId: string,
rfaPublicId: string,
documentNumber: string,
reviewerUserId: number,
_reviewerUserId: number
): Promise<void> {
const responseCode = await this.responseCodeRepo.findOne({
where: { publicId: responseCodePublicId },
});
if (!responseCode) {
this.logger.warn(`Response code not found for notification trigger: ${responseCodePublicId}`);
this.logger.warn(
`Response code not found for notification trigger: ${responseCodePublicId}`
);
return;
}
@@ -75,12 +77,12 @@ export class NotificationTriggerService {
type: 'SYSTEM',
entityType: 'rfa',
entityId: rfaPublicId as unknown as number,
}),
),
})
)
);
this.logger.log(
`Triggered ${notifyRoles.length} role notifications for code ${codeLabel} on document ${documentNumber}`,
`Triggered ${notifyRoles.length} role notifications for code ${codeLabel} on document ${documentNumber}`
);
}
}