1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/#id/channels.ts b/src/routes/guilds/#id/channels.ts
index 599b32d8..df41ec41 100644
--- a/src/routes/guilds/#id/channels.ts
+++ b/src/routes/guilds/#id/channels.ts
@@ -7,7 +7,7 @@ const router = Router();
router.get("/", async (req, res) => {
const guild_id = BigInt(req.params.id);
- const channels = await ChannelModel.find({ guild_id }).exec();
+ const channels = await ChannelModel.find({ guild_id }).lean().exec();
res.json(channels);
});
|