summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-09-29 16:52:53 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-09-29 16:52:53 +0200
commita918d36533bd61765f954f60c0e3af78b014907a (patch)
treee3c54f048ca5ef1470476aa917fbe3abd088b41a /models
parentc9c650664fd92f0924afb4548a50c7bca167d955 (diff)
downloadwekan-a918d36533bd61765f954f60c0e3af78b014907a.tar.gz
wekan-a918d36533bd61765f954f60c0e3af78b014907a.tar.bz2
wekan-a918d36533bd61765f954f60c0e3af78b014907a.zip
mostly frontend work, lists coll update with wipLimit field
Diffstat (limited to 'models')
-rw-r--r--models/lists.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/lists.js b/models/lists.js
index 80accefb..837af73c 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -42,7 +42,6 @@ Lists.attachSchema(new SimpleSchema({
}
},
},
-
wipLimit: {
type: SimpleSchema.Integer,
optional: true,
@@ -91,6 +90,10 @@ Lists.mutations({
restore() {
return { $set: { archived: false } };
},
+
+ setWipLimit(limit) {
+ return { $set: { wipLimit: limit } };
+ },
});
Lists.hookOptions.after.update = { fetchPrevious: false };