Ver código fonte

Add move function to boards mutations

boeserwolf 5 anos atrás
pai
commit
b3efa71d13
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      models/boards.js

+ 4 - 0
models/boards.js

@@ -1194,6 +1194,10 @@ Boards.mutations({
   setPresentParentTask(presentParentTask) {
     return { $set: { presentParentTask } };
   },
+
+  move(sortIndex) {
+    return { $set: { sort: sortIndex } };
+  },
 });
 
 function boardRemover(userId, doc) {