1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00
planka/server/api/helpers/tasks/get-many.js
Maksim Eltyshev f8f2d7345e feat: Add tasks reordering
Closes #50, closes #232
2022-07-21 11:31:05 +02:00

12 lines
234 B
JavaScript

module.exports = {
inputs: {
criteria: {
type: 'json',
custom: (value) => _.isArray(value) || _.isPlainObject(value),
},
},
async fn(inputs) {
return Task.find(inputs.criteria).sort('position');
},
};