Skip to content

Commit

Permalink
error message and status code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsrah7 committed Oct 20, 2024
1 parent 6586349 commit 881158f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/extensionRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const updateExtensionRequest = async (req, res) => {
(extensionRequest.extensionRequestData.status === EXTENSION_REQUEST_STATUS.APPROVED ||
extensionRequest.extensionRequestData.status === EXTENSION_REQUEST_STATUS.DENIED)
) {
return res.boom.badRequest("Extension Request cannot be updated");
return res.boom.badRequest("Only pending extension request can be updated");
}

if (req.body.assignee) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/extensionRequests.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ describe("Extension Requests", function () {
if (err) {
return done(err);
}
expect(res).to.have.status(200);
expect(res).to.have.status(204);
return done();
});
});
Expand Down

0 comments on commit 881158f

Please sign in to comment.