✨ add user_id field to Member

This commit is contained in:
Flam3rboy
2021-09-02 19:50:05 +02:00
parent c410fbcc0d
commit 562a53d6bb
17 changed files with 68 additions and 80 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ router.post("/:code", check(GuildTemplateCreateSchema), async (req: Request, res
const { maxGuilds } = Config.get().limits.user;
const guild_count = await Member.count({ id: req.user_id });
const guild_count = await Member.count({ user_id: req.user_id });
if (guild_count >= maxGuilds) {
throw DiscordApiErrors.MAXIMUM_GUILDS.withParams(maxGuilds);
}