Skip to content

Commit 94090e6

Browse files
committed
perf(admin): change admin summary days from 7 to 14
1 parent f943edf commit 94090e6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

server/admin/src/server/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ if (process.env.NODE_ENV === 'production') {
5656
});
5757
}
5858

59-
ViteExpress.listen(app, port, () =>
59+
ViteExpress.listen(app, port, () => {
6060
console.log(
6161
`Server is listening on port ${port}, visit with: http://localhost:${port}/admin/`
62-
)
63-
);
62+
);
63+
});

server/admin/src/server/router/api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ router.use('/file', fileRouter);
5050
router.use('/cache', cacheRouter);
5151

5252
router.get('/user/count/summary', auth(), async (req, res) => {
53-
// 返回最近7天的用户数统计
54-
const day = 7;
53+
// 返回最近14天的用户数统计
54+
const day = 14;
5555
const aggregateRes: { count: number; date: string }[] = await userModel
5656
.aggregate([
5757
{
@@ -177,8 +177,8 @@ router.delete('/messages/:id', auth(), async (req, res) => {
177177
});
178178

179179
router.get('/message/count/summary', auth(), async (req, res) => {
180-
// 返回最近7天的消息数统计
181-
const day = 7;
180+
// 返回最近14天的消息数统计
181+
const day = 14;
182182
const aggregateRes: { count: number; date: string }[] = await messageModel
183183
.aggregate([
184184
{

0 commit comments

Comments
 (0)