mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 15:45:58 +09:00
Remove needless properties
This commit is contained in:
parent
20df002746
commit
d62a6bab41
@ -537,7 +537,9 @@ export default class MiOS extends EventEmitter {
|
|||||||
// forceが有効, meta情報を保持していない or 期限切れ
|
// forceが有効, meta情報を保持していない or 期限切れ
|
||||||
if (force || this.meta == null || Date.now() - this.meta.chachedAt.getTime() > expire) {
|
if (force || this.meta == null || Date.now() - this.meta.chachedAt.getTime() > expire) {
|
||||||
this.isMetaFetching = true;
|
this.isMetaFetching = true;
|
||||||
const meta = await this.api('meta');
|
const meta = await this.api('meta', {
|
||||||
|
detail: false
|
||||||
|
});
|
||||||
this.meta = {
|
this.meta = {
|
||||||
data: meta,
|
data: meta,
|
||||||
chachedAt: new Date()
|
chachedAt: new Date()
|
||||||
|
@ -29,7 +29,11 @@ export const meta = {
|
|||||||
export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
||||||
const met: any = (await Meta.findOne()) || {};
|
const met: any = (await Meta.findOne()) || {};
|
||||||
|
|
||||||
const emojis = await Emoji.find({ host: null });
|
const emojis = await Emoji.find({ host: null }, {
|
||||||
|
fields: {
|
||||||
|
_id: false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
res({
|
res({
|
||||||
maintainer: config.maintainer,
|
maintainer: config.maintainer,
|
||||||
|
Loading…
Reference in New Issue
Block a user