diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-02 23:27:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-02 23:27:47 +0900 |
| commit | d62a6bab4183afe78070c14fcaace8f847e5ea9e (patch) | |
| tree | 62a30d0f2c3647686b2c84018f20ea3444e18596 /src/server/api/endpoints/meta.ts | |
| parent | :pizza: (diff) | |
| download | sharkey-d62a6bab4183afe78070c14fcaace8f847e5ea9e.tar.gz sharkey-d62a6bab4183afe78070c14fcaace8f847e5ea9e.tar.bz2 sharkey-d62a6bab4183afe78070c14fcaace8f847e5ea9e.zip | |
Remove needless properties
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 0a75c50e65..3d26003a1a 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -29,7 +29,11 @@ export const meta = { export default define(meta, (ps, me) => new Promise(async (res, rej) => { const met: any = (await Meta.findOne()) || {}; - const emojis = await Emoji.find({ host: null }); + const emojis = await Emoji.find({ host: null }, { + fields: { + _id: false + } + }); res({ maintainer: config.maintainer, |