From 4a32090940d8a386e5bc1dc5ab526cfb1388381e Mon Sep 17 00:00:00 2001 From: Abdelrrahman Elhaddad Date: Wed, 15 Nov 2023 08:30:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Code=20Formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/middlewares/validators/tasks.validator.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/middlewares/validators/tasks.validator.ts b/src/middlewares/validators/tasks.validator.ts index 4abf952..1a0d097 100644 --- a/src/middlewares/validators/tasks.validator.ts +++ b/src/middlewares/validators/tasks.validator.ts @@ -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()] }) });