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