diff options
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |