Skip to content
Commits on Source (4)
......@@ -106,6 +106,22 @@ EventsAgenda.schema = new SimpleSchema(
type: String,
optional: false,
},
createdAt: {
type: Date,
optional: true,
autoValue() {
if (this.isInsert) {
return new Date();
}
return this.value;
},
},
updatedAt: {
type: Date,
autoValue() {
return new Date();
},
},
},
{ tracker: Tracker },
);
......
{
"name": "sondage",
"version": "1.7.0-testing.1",
"version": "1.7.0-testing.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "sondage",
"private": true,
"version": "1.7.0-testing.1",
"version": "1.7.0-testing.2",
"license": "EUPL-1.2",
"description": "Online polls and meetings",
"author": "EOLE/PCLL <team@eole.education> - DINUM",
......