mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 21:29:43 +02:00
21 lines
381 B
JavaScript
Executable file
21 lines
381 B
JavaScript
Executable file
module.exports = {
|
|
inputs: {
|
|
id: {
|
|
type: 'string',
|
|
required: true
|
|
},
|
|
userId: {
|
|
type: 'string',
|
|
required: true
|
|
}
|
|
},
|
|
|
|
fn: async function(inputs, exits) {
|
|
const projectMembership = await ProjectMembership.findOne({
|
|
projectId: inputs.id,
|
|
userId: inputs.userId
|
|
});
|
|
|
|
return exits.success(!!projectMembership);
|
|
}
|
|
};
|