Skip to content

Commit

Permalink
fix: added onboarding type in schema for request body validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjs committed Dec 28, 2024
1 parent bb04196 commit f25ac98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middlewares/validators/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const updateRequestsMiddleware = async (
.messages({
"any.only": "state must be APPROVED or REJECTED",
}),
type: joi.string().valid(REQUEST_TYPE.OOO, REQUEST_TYPE.EXTENSION).required(),
type: joi.string().valid(REQUEST_TYPE.OOO, REQUEST_TYPE.EXTENSION, REQUEST_TYPE.ONBOARDING).required(),
});

try {
Expand Down

0 comments on commit f25ac98

Please sign in to comment.