Merge branch 'fix-date-stamps' of https://github.com/justinr1234/wekan into justinr1234-fix-date-stamps

This commit is contained in:
Lauri Ojansivu 2019-09-05 21:01:51 +03:00
commit 0f5226f814
22 changed files with 103 additions and 33 deletions

View file

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