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
|
@ -2,22 +2,20 @@ module.exports = {
|
|||
inputs: {
|
||||
id: {
|
||||
type: 'json',
|
||||
custom: value => _.isString(value) || _.isArray(value),
|
||||
required: true
|
||||
}
|
||||
custom: (value) => _.isString(value) || _.isArray(value),
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
fn: async function(inputs, exits) {
|
||||
const projectMemberships = await sails.helpers.getProjectMembershipsForUser(
|
||||
inputs.id
|
||||
);
|
||||
async fn(inputs, exits) {
|
||||
const projectMemberships = await sails.helpers.getProjectMembershipsForUser(inputs.id);
|
||||
|
||||
const projectIds = sails.helpers.mapRecords(
|
||||
projectMemberships,
|
||||
'projectId',
|
||||
_.isArray(inputs.id)
|
||||
_.isArray(inputs.id),
|
||||
);
|
||||
|
||||
return exits.success(projectIds);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue