Explorar o código

Add move function to boards mutations

boeserwolf %!s(int64=5) %!d(string=hai) anos
pai
achega
b3efa71d13
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {