This seems to function, doesn't include bots
This commit is contained in:
parent
326bc0a24f
commit
be075d9c5f
1 changed files with 2 additions and 5 deletions
|
|
@ -67,13 +67,10 @@ export class NodeinfoServerService {
|
|||
] = await Promise.all([
|
||||
this.metaService.fetch(true),
|
||||
// 重い
|
||||
this.usersRepository.count({ where: { host: IsNull(), lastActiveDate: MoreThan(new Date(now - 15552000000)) } }),
|
||||
this.usersRepository.count({ where: { host: IsNull(), lastActiveDate: MoreThan(new Date(now - 2592000000)) } }),
|
||||
this.usersRepository.count({ where: { host: IsNull(), isBot: false, lastActiveDate: MoreThan(new Date(now - 15552000000)) } }),
|
||||
this.usersRepository.count({ where: { host: IsNull(), isBot: false, lastActiveDate: MoreThan(new Date(now - 2592000000)) } }),
|
||||
]);
|
||||
|
||||
// const activeHalfyear = null;
|
||||
// const activeMonth = null;
|
||||
|
||||
const proxyAccount = meta.proxyAccountId ? await this.userEntityService.pack(meta.proxyAccountId).catch(() => null) : null;
|
||||
|
||||
const basePolicies = { ...DEFAULT_POLICIES, ...meta.policies };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue