From 52e195ffdc68c3718494d6ae2c6a4a1b6e470588 Mon Sep 17 00:00:00 2001 From: Tianli Feng Date: Tue, 5 Jan 2021 22:11:50 -0800 Subject: [PATCH] Change the query parameters 'from' and 'size' to be optional in 'getDestinations' API --- server/routes/destinations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/destinations.js b/server/routes/destinations.js index a3f5a820..f083a56c 100644 --- a/server/routes/destinations.js +++ b/server/routes/destinations.js @@ -24,8 +24,8 @@ export default function (services, router) { validate: { query: schema.object({ from: schema.maybe(schema.number()), - size: schema.number(), - search: schema.string(), + size: schema.maybe(schema.number()), + search: schema.maybe(schema.string()), sortField: schema.maybe(schema.string()), sortDirection: schema.maybe(schema.string()), type: schema.maybe(schema.string()),