summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-08 22:51:01 +0200
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-18 22:24:11 +1100
commit7d7567a1a07501ed3b4a201eb5c46a07ced4337e (patch)
tree9022304adb5008433dc0900a859de05538e2465b
parentMove to migrations. Use `npm run generate:db` for first database generation. (diff)
downloadserver-7d7567a1a07501ed3b4a201eb5c46a07ced4337e.tar.xz
Remove todo line that has been implemented.
-rw-r--r--src/api/routes/discoverable-guilds.ts3
-rw-r--r--src/api/routes/guild-recommendations.ts5
2 files changed, 1 insertions, 7 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
diff --git a/src/api/routes/guild-recommendations.ts b/src/api/routes/guild-recommendations.ts
index bda37973..302bbb9c 100644
--- a/src/api/routes/guild-recommendations.ts
+++ b/src/api/routes/guild-recommendations.ts
@@ -9,10 +9,7 @@ const router = Router();
 router.get("/", route({}), async (req: Request, res: Response) => {
 	const { limit, personalization_disabled } = req.query;
 	var showAllGuilds = Config.get().guild.discovery.showAllGuilds;
-	// ! 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 genLoadId = (size: Number) =>
 		[...Array(size)]
 			.map(() => Math.floor(Math.random() * 16).toString(16))