summary refs log tree commit diff
path: root/api/src/routes/guilds/templates/index.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 19:50:05 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-02 19:50:05 +0200
commitd29ccaf623910eea90852fa28cd8ec191bd7afff (patch)
tree040af2cced2548560403efb72be4d026f41908f9 /api/src/routes/guilds/templates/index.ts
parent:art: update openapi title (diff)
downloadserver-d29ccaf623910eea90852fa28cd8ec191bd7afff.tar.xz
:sparkles: add user_id field to Member
Diffstat (limited to '')
-rw-r--r--api/src/routes/guilds/templates/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/templates/index.ts b/api/src/routes/guilds/templates/index.ts

index 3a619278..16b65c65 100644 --- a/api/src/routes/guilds/templates/index.ts +++ b/api/src/routes/guilds/templates/index.ts
@@ -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); }