mirror of
https://github.com/plankanban/planka.git
synced 2025-07-21 14:19:44 +02:00
Code formatting with prettier, change eslint config for the server
This commit is contained in:
parent
b7f37f0f96
commit
a11f6260c0
191 changed files with 4321 additions and 2880 deletions
|
@ -4,25 +4,25 @@ module.exports = {
|
|||
inputs: {
|
||||
records: {
|
||||
type: 'ref',
|
||||
custom: value => _.isArray(value),
|
||||
required: true
|
||||
custom: (value) => _.isArray(value),
|
||||
required: true,
|
||||
},
|
||||
attribute: {
|
||||
type: 'string',
|
||||
defaultsTo: 'id'
|
||||
defaultsTo: 'id',
|
||||
},
|
||||
unique: {
|
||||
type: 'boolean',
|
||||
defaultsTo: false
|
||||
}
|
||||
defaultsTo: false,
|
||||
},
|
||||
},
|
||||
|
||||
fn: function(inputs, exits) {
|
||||
fn(inputs, exits) {
|
||||
let result = _.map(inputs.records, inputs.attribute);
|
||||
if (inputs.unique) {
|
||||
result = _.uniq(result);
|
||||
}
|
||||
|
||||
return exits.success(result);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue