chore(server): update loopback-connector-mogodb
This commit is contained in:
@ -62,7 +62,7 @@ PassportConfigurator.prototype.init = function passportInit(noSession) {
|
||||
.aggregate([
|
||||
{ $match: { _id: user.id } },
|
||||
{ $project: { points: { $size: '$progressTimestamps' } } }
|
||||
], function(err, [{ points = 1 } = {}]) {
|
||||
]).get(function(err, [{ points = 1 } = {}]) {
|
||||
if (err) { console.error(err); return done(err); }
|
||||
user.points = points;
|
||||
let completedChallengeCount = 0;
|
||||
|
Reference in New Issue
Block a user