Skip to content

Commit

Permalink
search api validation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdul Ahad authored and Abdul Ahad committed Aug 2, 2023
1 parent 72be3d2 commit 5422b4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/validations/explorer.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import Joi from 'joi';
export const searchData = {
query: Joi.object().keys({
data: Joi.string().required(),
fromNetwork: Joi.string(),
toNetwork: Joi.string(),
fromDate: Joi.number(),
toDate: Joi.number(),
fromNetwork: Joi.string().allow(''),
toNetwork: Joi.string().allow(''),
fromDate: Joi.number().allow(''),
toDate: Joi.number().allow(''),
}),
};

0 comments on commit 5422b4f

Please sign in to comment.