Ver código fonte

Add sort field to boards model

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

+ 8 - 0
models/boards.js

@@ -493,6 +493,14 @@ Boards.attachSchema(
       type: String,
       type: String,
       defaultValue: 'board',
       defaultValue: 'board',
     },
     },
+    sort: {
+      /**
+       * Sort value
+       */
+      type: Number,
+      decimal: true,
+      defaultValue: -1,
+    },
   }),
   }),
 );
 );