mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = {
|
||||
const labels = await sails.helpers.boards.getLabels(board.id);
|
||||
const lists = await sails.helpers.boards.getLists(board.id);
|
||||
|
||||
const cards = await sails.helpers.boards.getCards(board);
|
||||
const cards = await sails.helpers.boards.getCards(board.id);
|
||||
const cardIds = sails.helpers.utils.mapRecords(cards);
|
||||
|
||||
const cardSubscriptions = await sails.helpers.cardSubscriptions.getMany({
|
||||
@@ -69,7 +69,8 @@ module.exports = {
|
||||
);
|
||||
|
||||
cards.forEach((card) => {
|
||||
card.isSubscribed = isSubscribedByCardId[card.id] || false; // eslint-disable-line no-param-reassign
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
card.isSubscribed = isSubscribedByCardId[card.id] || false;
|
||||
});
|
||||
|
||||
if (this.req.isSocket) {
|
||||
|
||||
Reference in New Issue
Block a user