Fixed notification issue in updating application status.

This commit is contained in:
piyushkag
2024-12-30 15:45:16 +05:30
parent 8fba9a1c81
commit 9e002ee9db

View File

@@ -177,7 +177,7 @@ public class NotificationDao {
ApplicationEntity application = applicationService.validateApplication(applicationEvaluationEntity.getApplicationId()); ApplicationEntity application = applicationService.validateApplication(applicationEvaluationEntity.getApplicationId());
if (instructorId != null) { if (instructorId != null) {
NotificationReq notificationreq = createNotificationReq(notificationTypeEnum.getValue(), placeHolders, instructorId, application.getUserWithCompany(), NotificationReq notificationreq = createNotificationReq(notificationTypeEnum.getValue(), placeHolders, instructorId, application.getUserWithCompany(),
listOf(application.getCompanyId())); null);
sendNotification(notificationreq); sendNotification(notificationreq);
} }
} }
@@ -187,7 +187,7 @@ public class NotificationDao {
UserEntity userEntity1 = user.get(0); UserEntity userEntity1 = user.get(0);
if (userEntity1 != null) { if (userEntity1 != null) {
NotificationReq notificationreq = createNotificationReq(notificationTypeEnum.getValue(), placeHolders, userEntity1.getId(), application.getUserWithCompany(), NotificationReq notificationreq = createNotificationReq(notificationTypeEnum.getValue(), placeHolders, userEntity1.getId(), application.getUserWithCompany(),
listOf(application.getCompanyId())); null);
sendNotification(notificationreq); sendNotification(notificationreq);
} }
} }