From afc9caf7bf135ac2f96e8286d0c5b1022d40c8d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 3 Nov 2018 15:21:07 +0900 Subject: [PATCH] Improve performance --- src/models/emoji.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/emoji.ts b/src/models/emoji.ts index 888fcb414..62fee3726 100644 --- a/src/models/emoji.ts +++ b/src/models/emoji.ts @@ -19,5 +19,9 @@ export const packEmojis = async ( host: string, // MeiTODO: filter ) => { - return await Emoji.find({ host }); + return await Emoji.find({ host }, { + fields: { + _id: false + } + }); };