mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Add username to user
This commit is contained in:
@@ -2,7 +2,7 @@ module.exports = {
|
||||
inputs: {
|
||||
criteria: {
|
||||
type: 'json',
|
||||
custom: value => _.isArray(value) || _.isPlainObject(value),
|
||||
custom: (value) => _.isArray(value) || _.isPlainObject(value),
|
||||
},
|
||||
limit: {
|
||||
type: 'number',
|
||||
@@ -10,9 +10,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
const actions = await Action.find(inputs.criteria)
|
||||
.sort('id DESC')
|
||||
.limit(inputs.limit);
|
||||
const actions = await Action.find(inputs.criteria).sort('id DESC').limit(inputs.limit);
|
||||
|
||||
return exits.success(actions);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user