We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7246c18 + 8e83a06 commit 3520400Copy full SHA for 3520400
backend/src/controller/points.ts
@@ -75,9 +75,11 @@ class PointController {
75
const { results } = await PointsModel.aggregate(pipeline);
76
if (results.length === 0) return ctx.respond(404, Responses.NOT_FOUND);
77
78
- results = results.map(e => { userId: e.id, total: e.total })
+ results = results.map(e => {
79
+ return { userId: e.id, total: e.total };
80
+ });
81
- return ctx.respond(200, results)
82
+ return ctx.respond(200, results);
83
84
}
85
0 commit comments