mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Code formatting with prettier, change eslint config for the server
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user