Fixes #2596 incorrect date types for created & updated

This commit is contained in:
Justin Reynolds 2019-09-05 12:29:45 -05:00
parent 2c78aab3dc
commit 3b9f2ca7c2
22 changed files with 103 additions and 33 deletions

View file

@ -45,6 +45,8 @@ Lists.attachSchema(
autoValue() {
if (this.isInsert) {
return new Date();
} else if (this.isUpsert) {
return { $setOnInsert: new Date() };
} else {
this.unset();
}