mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 16:33:11 +02:00
Improve performance
This commit is contained in:
parent
67697a7aa6
commit
afc9caf7bf
1 changed files with 5 additions and 1 deletions
|
@ -19,5 +19,9 @@ export const packEmojis = async (
|
||||||
host: string,
|
host: string,
|
||||||
// MeiTODO: filter
|
// MeiTODO: filter
|
||||||
) => {
|
) => {
|
||||||
return await Emoji.find({ host });
|
return await Emoji.find({ host }, {
|
||||||
|
fields: {
|
||||||
|
_id: false
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue