diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-16 20:49:07 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-16 20:49:07 +0200 |
commit | 1cd4b819171f9bbadb00b2e87d1a710ead355f95 (patch) | |
tree | e66bff65da570bd9d3c4c247ae84b4826bb302e6 /api/src/routes/discoverable-guilds.ts | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-api (diff) | |
download | server-1cd4b819171f9bbadb00b2e87d1a710ead355f95.tar.xz |
Revert ":construction: webhook"
This reverts commit f691aa4c5aa47c8a8085c7b01912a1c403ce8732.
Diffstat (limited to 'api/src/routes/discoverable-guilds.ts')
-rw-r--r-- | api/src/routes/discoverable-guilds.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/discoverable-guilds.ts b/api/src/routes/discoverable-guilds.ts index 71789123..f667eb2a 100644 --- a/api/src/routes/discoverable-guilds.ts +++ b/api/src/routes/discoverable-guilds.ts @@ -10,7 +10,7 @@ router.get("/", route({}), async (req: Request, res: Response) => { // ! this only works using SQL querys // TODO: implement this with default typeorm query // const guilds = await Guild.find({ where: { features: "DISCOVERABLE" } }); //, take: Math.abs(Number(limit)) }); - const guilds = await Guild.find({ where: `"features" LIKE 'COMMUNITY'`, take: Math.abs(Number(limit) || 50) }); + const guilds = await Guild.find({ where: `"features" LIKE 'COMMUNITY'`, take: Math.abs(Number(limit)) }); res.send({ guilds: guilds }); }); |