summary refs log tree commit diff
path: root/src/routes/guilds/#id/channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/guilds/#id/channels.ts')
-rw-r--r--src/routes/guilds/#id/channels.ts2
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); });