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, completedDate: oldChallenge.completedDate,
lastUpdated: completedChallenge.completedDate lastUpdated: completedChallenge.completedDate
}; };
} else {
updateData.$push = { updateData.$push = {
progressTimestamps: {
timestamp: Date.now(), timestamp: Date.now(),
completedChallenge: challengeId completedChallenge: challengeId
}
}; };
} else {
finalChallenge = completedChallenge; finalChallenge = completedChallenge;
} }