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