From e536fb2f72e4883979b451b60b12c44f5f94313c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 18 Jul 2022 18:30:53 +0200 Subject: replace all var with let (reduces warnings) --- api/src/routes/discovery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src/routes/discovery.ts') diff --git a/api/src/routes/discovery.ts b/api/src/routes/discovery.ts index 1991400e..a7df120e 100644 --- a/api/src/routes/discovery.ts +++ b/api/src/routes/discovery.ts @@ -10,7 +10,7 @@ router.get("/categories", route({}), async (req: Request, res: Response) => { const { locale, primary_only } = req.query; - const out = primary_only ? await Categories.find() : await Categories.find({ where: `"is_primary" = "true"` }); + const out = primary_only ? await Categories.find() : await Categories.find({ where: {is_primary: true} }); res.send(out); }); -- cgit 1.5.1