Update packages/backend/src/server/api/endpoints/users.ts

This commit is contained in:
かっこかり 2024-07-14 11:49:13 +09:00 committed by GitHub
parent d98df9edf1
commit 04a6df59db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}
const chartUsers: { userId: string; count: number; }[] = [];
if (ps.sort?.endsWith('pv')) {
await this.perUserPvChart.getChartUsers('hour', 0, null, ps.limit, ps.offset).then(users => {
await this.perUserPvChart.getChartUsers('day', 0, null, ps.limit, ps.offset).then(users => {
chartUsers.push(...users);
});
}