Remove needless properties

This commit is contained in:
syuilo 2018-11-02 23:27:47 +09:00
parent 20df002746
commit d62a6bab41
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 8 additions and 2 deletions

View file

@ -537,7 +537,9 @@ export default class MiOS extends EventEmitter {
// forceが有効, meta情報を保持していない or 期限切れ
if (force || this.meta == null || Date.now() - this.meta.chachedAt.getTime() > expire) {
this.isMetaFetching = true;
const meta = await this.api('meta');
const meta = await this.api('meta', {
detail: false
});
this.meta = {
data: meta,
chachedAt: new Date()

View file

@ -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,