mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 01:14:12 +03:00
ref: Little refactoring
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user