diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-08 22:51:01 +0200 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-18 22:24:11 +1100 |
commit | 9a094da14dfd809dd25aa9094269f5cc9ee931ba (patch) | |
tree | 05273aed7332d4a96b88c5a08354df5032f88ffe /src/api/routes/discoverable-guilds.ts | |
parent | Move to migrations. Use `npm run generate:db` for first database generation. (diff) | |
download | server-9a094da14dfd809dd25aa9094269f5cc9ee931ba.tar.xz |
Remove todo line that has been implemented.
Diffstat (limited to 'src/api/routes/discoverable-guilds.ts')
-rw-r--r-- | src/api/routes/discoverable-guilds.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/api/routes/discoverable-guilds.ts b/src/api/routes/discoverable-guilds.ts index 0e7cfbab..428ca605 100644 --- a/src/api/routes/discoverable-guilds.ts +++ b/src/api/routes/discoverable-guilds.ts @@ -10,9 +10,6 @@ router.get("/", route({}), async (req: Request, res: Response) => { const { offset, limit, categories } = req.query; var showAllGuilds = Config.get().guild.discovery.showAllGuilds; var configLimit = Config.get().guild.discovery.limit; - // ! 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)) }); let guilds; if (categories == undefined) { guilds = showAllGuilds |