tat alert to wrong approver is fixed

This commit is contained in:
laxmanhalaki 2026-03-12 12:37:49 +05:30
parent e4d45b4fca
commit 07577b4156

View File

@ -631,7 +631,7 @@ class NotificationService {
const currentLevel = await ApprovalLevel.findOne({ const currentLevel = await ApprovalLevel.findOne({
where: { where: {
requestId: payload.requestId, requestId: payload.requestId,
status: 'PENDING' status: 'IN_PROGRESS'
}, },
order: [['levelNumber', 'ASC']] order: [['levelNumber', 'ASC']]
}); });
@ -718,7 +718,7 @@ class NotificationService {
const currentLevel = await ApprovalLevel.findOne({ const currentLevel = await ApprovalLevel.findOne({
where: { where: {
requestId: payload.requestId, requestId: payload.requestId,
status: 'PENDING' status: 'IN_PROGRESS'
}, },
order: [['levelNumber', 'ASC']] order: [['levelNumber', 'ASC']]
}); });