mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
14 lines
280 B
JavaScript
14 lines
280 B
JavaScript
const criteriaValidator = (value) => _.isArray(value) || _.isPlainObject(value);
|
|
|
|
module.exports = {
|
|
inputs: {
|
|
criteria: {
|
|
type: 'json',
|
|
custom: criteriaValidator,
|
|
},
|
|
},
|
|
|
|
async fn(inputs) {
|
|
return Card.find(inputs.criteria).sort('position');
|
|
},
|
|
};
|