mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
15 lines
326 B
JavaScript
15 lines
326 B
JavaScript
module.exports = {
|
|
inputs: {
|
|
idOrIds: {
|
|
type: 'json',
|
|
custom: (value) => _.isString(value) || _.every(value, _.isString),
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
async fn(inputs) {
|
|
const cards = await sails.helpers.boards.getCards(inputs.idOrIds);
|
|
|
|
return sails.helpers.utils.mapRecords(cards);
|
|
},
|
|
};
|