1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-21 14:19:44 +02:00

fix: Fix styles, refactoring

This commit is contained in:
Maksim Eltyshev 2024-08-12 23:17:17 +02:00
parent c594e8bd71
commit 12f05adde7
20 changed files with 229 additions and 202 deletions

View file

@ -49,6 +49,14 @@ module.exports = {
throw 'positionMustBeInValues';
}
if (values.dueDate) {
if (_.isNil(values.isDueDateCompleted)) {
values.isDueDateCompleted = false;
}
} else {
delete values.isDueDateCompleted;
}
const cards = await sails.helpers.lists.getCards(values.list.id);
const { position, repositions } = sails.helpers.utils.insertToPositionables(