chore: Fix api linting

This commit is contained in:
Bouncey
2019-02-16 00:31:05 +00:00
committed by mrugesh mohapatra
parent 09e563f742
commit 0ccd0a6f77
6 changed files with 25 additions and 22 deletions

View File

@ -22,7 +22,7 @@ export default function populateUser(db, user) {
db.collection('user')
.aggregate([
{ $match: { _id: user.id } },
{ $project: { points: { $size: '$progressTimestamps' } } },
{ $project: { points: { $size: '$progressTimestamps' } } }
])
.get(function(err, [{ points = 1 } = {}]) {
if (err) {