We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baad820 commit ea2222cCopy full SHA for ea2222c
services/oooRequest.ts
@@ -120,10 +120,10 @@ export const validateOooAcknowledgeRequest = async (
120
throw new BadRequest(INVALID_REQUEST_TYPE)
121
}
122
if (requestStatus === REQUEST_STATE.APPROVED) {
123
- throw new Conflict(REQUEST_ALREADY_APPROVED)
+ throw new BadRequest(REQUEST_ALREADY_APPROVED)
124
125
if (requestStatus === REQUEST_STATE.REJECTED) {
126
- throw new Conflict(REQUEST_ALREADY_REJECTED)
+ throw new BadRequest(REQUEST_ALREADY_REJECTED)
127
128
} catch (error) {
129
logger.error("Error while validating OOO acknowledge request", error);
0 commit comments