summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboeserwolf <github@noxware.de>2020-04-19 12:38:56 +0300
committerboeserwolf <github@noxware.de>2020-04-19 13:49:10 +0300
commitb3efa71d1373ede679282be35cba947dc2b868ff (patch)
tree623b57e1f3ebd3db2d29acb8a0455186b69a3ab3
parent10fcc19b7f9307e71f01b6abca055806d69f7d4e (diff)
downloadwekan-b3efa71d1373ede679282be35cba947dc2b868ff.tar.gz
wekan-b3efa71d1373ede679282be35cba947dc2b868ff.tar.bz2
wekan-b3efa71d1373ede679282be35cba947dc2b868ff.zip
Add move function to boards mutations
-rw-r--r--models/boards.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index fdb07f89..4c2d96da 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -1194,6 +1194,10 @@ Boards.mutations({
setPresentParentTask(presentParentTask) {
return { $set: { presentParentTask } };
},
+
+ move(sortIndex) {
+ return { $set: { sort: sortIndex } };
+ },
});
function boardRemover(userId, doc) {