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

fix: Change mechanics of file uploading

This commit is contained in:
Maksim Eltyshev 2022-08-26 02:45:27 +02:00
parent af71a96624
commit 542c4a845c
10 changed files with 375 additions and 317 deletions

View file

@ -23,7 +23,7 @@ module.exports = {
},
},
async fn(inputs, exits) {
async fn(inputs) {
const { currentUser } = this.req;
const { board } = await sails.helpers.boards
@ -61,7 +61,7 @@ module.exports = {
const tasks = await sails.helpers.cards.getTasks(cardIds);
const attachments = await sails.helpers.cards.getAttachments(cardIds);
return exits.success({
return {
items: cards,
included: {
cardMemberships,
@ -69,6 +69,6 @@ module.exports = {
tasks,
attachments,
},
});
};
},
};