1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/templates/index.ts b/src/routes/guilds/templates/index.ts
index fdd70335..80dbe5f8 100644
--- a/src/routes/guilds/templates/index.ts
+++ b/src/routes/guilds/templates/index.ts
@@ -36,7 +36,7 @@ router.post("/:template_id", check(GuildTemplateCreateSchema), async (req: Reque
if (!template_id) throw new HTTPError("Unknown template_id", 404);
- const template = await TemplateModel.findById({ _id: template_id }).exec();
+ const template = await TemplateModel.findOne({ id: template_id }).exec();
if (!template) throw new HTTPError("template not found", 404);
const guild_id = Snowflake.generate();
|