Skip to content

Commit 3520400

Browse files
authored
Merge pull request #24 from taythebot/master
Update points.ts
2 parents 7246c18 + 8e83a06 commit 3520400

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backend/src/controller/points.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ class PointController {
7575
const { results } = await PointsModel.aggregate(pipeline);
7676
if (results.length === 0) return ctx.respond(404, Responses.NOT_FOUND);
7777

78-
results = results.map(e => { userId: e.id, total: e.total })
78+
results = results.map(e => {
79+
return { userId: e.id, total: e.total };
80+
});
7981

80-
return ctx.respond(200, results)
82+
return ctx.respond(200, results);
8183

8284
}
8385
}

0 commit comments

Comments
 (0)