Skip to content

Commit

Permalink
✨ Code Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-elhaddad committed Nov 15, 2023
1 parent 9931224 commit 4a32090
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/middlewares/validators/tasks.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ class tasksValidator {
req.body.t_recurring?.type === 'monthly'
? joi.number()
: req.body.t_recurring?.type === 'weekly'
? joi
.string()
.valid(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
)
: joi.forbidden(),
? joi
.string()
.valid(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
)
: joi.forbidden(),
end_date: [joi.date(), joi.string()]
})
});
Expand Down

0 comments on commit 4a32090

Please sign in to comment.