Skip to content

Commit 0a23eaa

Browse files
committed
FINERACT-2320: Return false instead of throwing exception when LOAN_COB is disabled
1 parent dff889b commit 0a23eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fineract-provider/src/main/java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ public Response executeLoanCOBCatchUp() {
8787
@Operation(summary = "Retrieves whether Loan COB catch up is running", description = "Retrieves whether Loan COB catch up is running, and the current execution date if it is running.")
8888
public IsCatchUpRunningDTO isCatchUpRunning() {
8989
return loanCOBCatchUpServiceOp.map(LoanCOBCatchUpService::isCatchUpRunning)
90-
.orElseThrow(() -> new JobIsNotFoundOrNotEnabledException(JobName.LOAN_COB.name()));
90+
.orElse(new IsCatchUpRunningDTO(false, null));
9191
}
9292
}

0 commit comments

Comments
 (0)