mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
2d92ade8dc
commit
c6ee7d54bb
190 changed files with 2144 additions and 1817 deletions
|
@ -4,10 +4,17 @@ module.exports = {
|
|||
type: 'json',
|
||||
custom: (value) => _.isArray(value) || _.isPlainObject(value),
|
||||
},
|
||||
sort: {
|
||||
type: 'json',
|
||||
defaultsTo: 'id DESC',
|
||||
},
|
||||
limit: {
|
||||
type: 'number',
|
||||
},
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
const cards = await Card.find(inputs.criteria).sort('position');
|
||||
const cards = await Card.find(inputs.criteria).sort(inputs.sort).limit(inputs.limit);
|
||||
|
||||
return exits.success(cards);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue