Skip to content

Commit

Permalink
remove undefined clause from joi validations
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Dec 8, 2023
1 parent c5a922f commit 58c4366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validators/graphqlQueryValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const createDonationQueryValidator = Joi.object({
'string.base': i18n.__(translationErrorMessagesKeys.CURRENCY_IS_INVALID),
}),
projectId: Joi.number().integer().min(0).required(),
nonce: Joi.number().integer().min(0).allow(null, undefined),
nonce: Joi.number().integer().min(0).allow(null),
anonymous: Joi.boolean(),
transakId: Joi.string(),
referrerId: Joi.string().allow(null, ''),
Expand Down

0 comments on commit 58c4366

Please sign in to comment.