mirror of
https://github.com/whyour/qinglong.git
synced 2025-09-12 14:06:10 +08:00
fix query mistakes
This commit is contained in:
parent
4fa3a34d8f
commit
410931efac
|
@ -11,13 +11,12 @@ export default (app: Router) => {
|
||||||
route.get(
|
route.get(
|
||||||
'/',
|
'/',
|
||||||
celebrate({
|
celebrate({
|
||||||
body: Joi.array().items(
|
query:
|
||||||
Joi.object({
|
Joi.object({
|
||||||
searchValue: Joi.string().optional().allow(''),
|
searchValue: Joi.string().optional().allow(''),
|
||||||
type: Joi.string().optional().allow(''),
|
type: Joi.string().optional().allow(''),
|
||||||
status: Joi.string().optional().allow(''),
|
status: Joi.string().optional().allow(''),
|
||||||
}),
|
}),
|
||||||
),
|
|
||||||
}),
|
}),
|
||||||
async (req: Request, res: Response, next: NextFunction) => {
|
async (req: Request, res: Response, next: NextFunction) => {
|
||||||
const logger: Logger = Container.get('logger');
|
const logger: Logger = Container.get('logger');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user