Done ticket GEPAFINBE-192 Fixed NDG in-progress response case and updated status code to 200.

This commit is contained in:
piyushkag
2025-03-24 19:29:43 +05:30
committed by rajesh
parent c8f8ebf23e
commit 2976984402
4 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
package net.gepafin.tendermanagement.config;
import jakarta.annotation.PostConstruct;
import net.gepafin.tendermanagement.constants.GepafinConstant;
import net.gepafin.tendermanagement.repositories.ApplicationRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class NdgStatusResetHandler {
@Autowired
private ApplicationRepository applicationRepository;
@PostConstruct
public void resetNdgStatusOnStartup() {
applicationRepository.resetNdgStatusForInProgress(GepafinConstant.NDG_IN_PROGRESS);
}
}