Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit a54c4a7

Browse files
committed
async func
1 parent 3db5367 commit a54c4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ router.get('/stats', async ctx => {
135135

136136
const usersPerMinute = usersT.length;
137137

138-
const reposPerMinute = (await Promise.all(usersT.map(user => Number(await redis.get(`user:${user}`)))))
138+
const reposPerMinute = (await Promise.all(usersT.map(async user => Number(await redis.get(`user:${user}`)))))
139139
.reduce((a, b) => a + b);
140140

141141
ctx.body = {

0 commit comments

Comments
 (0)