Skip to content

Commit

Permalink
Added debug code to return the existing case file, if the uploaded ca…
Browse files Browse the repository at this point in the history
…sefile is active
  • Loading branch information
rudolf-castelino committed Feb 3, 2025
1 parent 71989a1 commit 3668c4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/dea-app/src/app/services/case-file-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ export const validateCompleteCaseFileRequirements = async (
repositoryProvider
);

if (existingCaseFile.status === CaseFileStatus.ACTIVE) {
return existingCaseFile;
}
if (existingCaseFile.status != CaseFileStatus.PENDING) {
throw new ValidationError(
'File ' + existingCaseFile.fileName + ' is in incorrect state' + existingCaseFile.status + ' for upload'
Expand Down

0 comments on commit 3668c4c

Please sign in to comment.