Fix progressTimestamps Update

This commit is contained in:
Rex Schrader
2016-02-10 12:01:00 -08:00
parent d23f7fa8f2
commit 80d26ed9b1

View File

@ -70,12 +70,13 @@ function buildUserUpdate(
completedDate: oldChallenge.completedDate,
lastUpdated: completedChallenge.completedDate
};
updateData.$push = {
timestamp: Date.now(),
completedChallenge: challengeId
};
} else {
updateData.$push = {
progressTimestamps: {
timestamp: Date.now(),
completedChallenge: challengeId
}
};
finalChallenge = completedChallenge;
}