Import single card: archived card

This commit is contained in:
Xavier Priour 2015-10-14 12:15:52 +02:00 committed by Maxime Quandalle
parent 68518f5497
commit 7e64c22c1a
2 changed files with 4 additions and 2 deletions

View file

@ -194,8 +194,9 @@ Cards.mutations({
Cards.before.insert((userId, doc) => {
doc.createdAt = new Date();
doc.dateLastActivity = new Date();
doc.archived = false;
if(!doc.hasOwnProperty('archived')){
doc.archived = false;
}
if (!doc.userId) {
doc.userId = userId;
}