From 3f0c26920ad9dd1ac109c27cd16cb3a6c17cfeb7 Mon Sep 17 00:00:00 2001 From: Scott Dormand Date: Tue, 19 Nov 2024 08:26:08 +0000 Subject: [PATCH] prettier --- .../src/schema/authenticate.schema.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/sales-api-service/src/schema/authenticate.schema.js b/packages/sales-api-service/src/schema/authenticate.schema.js index 47cef6027..8dff59d01 100644 --- a/packages/sales-api-service/src/schema/authenticate.schema.js +++ b/packages/sales-api-service/src/schema/authenticate.schema.js @@ -6,24 +6,17 @@ import { contactResponseSchema } from './contact.schema.js' import { finalisedPermissionSchemaContent } from './permission.schema.js' export const authenticateRenewalRequestParamsSchema = Joi.object({ - referenceNumber: Joi.string() - .min(6) - .required() - .description('The permission reference number (supports partial)') + referenceNumber: Joi.string().min(6).required().description('The permission reference number (supports partial)') }).label('authenticate-renewal-request-params') export const authenticateRenewalRequestQuerySchema = Joi.object({ - licenseeBirthDate: validation.contact - .createBirthDateValidator(Joi) - .description('The date of birth of the licensee'), + licenseeBirthDate: validation.contact.createBirthDateValidator(Joi).description('The date of birth of the licensee'), licenseePostcode: Joi.alternatives().try( validation.contact.createUKPostcodeValidator(Joi).description('The postcode of the licensee'), validation.contact.createOverseasPostcodeValidator(Joi) ), // AWAIT DATE VALIDATOR - licenceEndDate: validation.date - .createRealDateValidator(Joi) - .description('The end date of the licence') + licenceEndDate: validation.date.createRealDateValidator(Joi).description('The end date of the licence') }).label('authenticate-renewal-request-query') export const authenticateRenewalResponseSchema = Joi.object({