mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
12
server/api/helpers/tasks/get-many.js
Normal file
12
server/api/helpers/tasks/get-many.js
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
inputs: {
|
||||
criteria: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isArray(value) || _.isPlainObject(value),
|
||||
},
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
return Task.find(inputs.criteria).sort('id');
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user