1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-20 05:39:43 +02:00

feat: Add tasks reordering

Closes #50, closes #232
This commit is contained in:
Maksim Eltyshev 2022-07-21 11:31:05 +02:00
parent ddf9a32ea9
commit ad67b9ba24
27 changed files with 341 additions and 94 deletions

View file

@ -11,6 +11,10 @@ module.exports = {
regex: /^[0-9]+$/,
required: true,
},
position: {
type: 'number',
required: true,
},
name: {
type: 'string',
required: true,
@ -39,7 +43,7 @@ module.exports = {
throw Errors.CARD_NOT_FOUND; // Forbidden
}
const values = _.pick(inputs, ['name', 'isCompleted']);
const values = _.pick(inputs, ['position', 'name', 'isCompleted']);
const task = await sails.helpers.tasks.createOne(values, card, this.req);
return {