1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-08 17:54:00 +02:00
This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -21,7 +21,7 @@ export default class UsersChart extends Chart<UsersLog> {
},
remote: {
total: latest.remote.total,
}
},
};
}
@@ -45,7 +45,7 @@ export default class UsersChart extends Chart<UsersLog> {
protected async fetchActual(): Promise<DeepPartial<UsersLog>> {
const [localCount, remoteCount] = await Promise.all([
Users.count({ host: null }),
Users.count({ host: Not(IsNull()) })
Users.count({ host: Not(IsNull()) }),
]);
return {
@@ -54,7 +54,7 @@ export default class UsersChart extends Chart<UsersLog> {
},
remote: {
total: remoteCount,
}
},
};
}
@@ -70,7 +70,7 @@ export default class UsersChart extends Chart<UsersLog> {
}
await this.inc({
[Users.isLocalUser(user) ? 'local' : 'remote']: update
[Users.isLocalUser(user) ? 'local' : 'remote']: update,
});
}
}