mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -17,14 +17,26 @@ module.exports = {
|
||||
throw 'pathNotFound';
|
||||
}
|
||||
|
||||
const path = await sails.helpers
|
||||
.getListToProjectPath(card.listId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
let path;
|
||||
if (card.listId) {
|
||||
path = await sails.helpers
|
||||
.getListToProjectPath(card.listId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
} else {
|
||||
path = await sails.helpers
|
||||
.getBoardToProjectPath(card.boardId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
||||
return exits.success({
|
||||
card,
|
||||
|
||||
Reference in New Issue
Block a user