Done ticket GEPAFINBE-192 Fixed NDG in-progress response case and updated status code to 200.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user