fix(timstamps): push correct timestamp format on account creation

This commit is contained in:
Stuart Taylor
2018-07-01 10:28:46 +01:00
parent 625f64d427
commit cfc9e31f62

View File

@ -245,7 +245,7 @@ module.exports = function(User) {
} }
if (user.progressTimestamps.length === 0) { if (user.progressTimestamps.length === 0) {
user.progressTimestamps.push({ timestamp: Date.now() }); user.progressTimestamps.push(Date.now());
} }
return Observable.fromPromise(User.doesExist(null, user.email)) return Observable.fromPromise(User.doesExist(null, user.email))
.do(exists => { .do(exists => {