From 7e64c22c1a6352e805b0ba9402062823f9b02e11 Mon Sep 17 00:00:00 2001 From: Xavier Priour Date: Wed, 14 Oct 2015 12:15:52 +0200 Subject: Import single card: archived card --- models/cards.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'models/cards.js') diff --git a/models/cards.js b/models/cards.js index 95943ae2..2e16583d 100644 --- a/models/cards.js +++ b/models/cards.js @@ -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; } -- cgit v1.2.3-1-g7c22