mirror of
https://github.com/wekan/wekan.git
synced 2026-01-22 09:16:10 +01:00
Import single card: archived card
This commit is contained in:
parent
68518f5497
commit
7e64c22c1a
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue