Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
fix undefined on query (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshmage authored Feb 28, 2023
2 parents c5d65cc + d923a87 commit e689e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/search/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function get(req: NextApiRequest, res: NextApiResponse) {
include,
attributes,
group,
order: [[String(req.query.sortBy) ||["createdAt"], String(req.query.order) || "DESC"]],
order: [[req.query.sortBy || "createdAt", req.query.order || "DESC"]],
where: whereCondition,
nest: true,
})
Expand Down

0 comments on commit e689e3e

Please sign in to comment.