1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 08:09:44 +02:00

ref: Little refactoring

This commit is contained in:
Maksim Eltyshev 2025-07-14 14:54:06 +02:00
parent 70cadcd974
commit 3aba4d4a56
14 changed files with 123 additions and 52 deletions

View file

@ -34,9 +34,17 @@ module.exports = {
},
},
exists: {
linkedCardOrNameMustBeInValues: {},
},
async fn(inputs) {
const { values } = inputs;
if (!values.linkedCard && !values.name) {
throw 'linkedCardOrNameMustBeInValues';
}
const tasks = await Task.qm.getByTaskListId(values.taskList.id);
const { position, repositions } = sails.helpers.utils.insertToPositionables(