mirror of
https://github.com/plankanban/planka.git
synced 2025-12-16 17:23:21 +03:00
@@ -32,6 +32,13 @@ module.exports = {
|
||||
inputs.request,
|
||||
);
|
||||
|
||||
await sails.helpers.utils.sendWebhook.with({
|
||||
event: 'PROJECT_CREATE',
|
||||
data: project,
|
||||
projectId: project.id,
|
||||
user: inputs.request.currentUser,
|
||||
});
|
||||
|
||||
return {
|
||||
project,
|
||||
projectManager,
|
||||
|
||||
@@ -37,6 +37,13 @@ module.exports = {
|
||||
inputs.request,
|
||||
);
|
||||
});
|
||||
|
||||
await sails.helpers.utils.sendWebhook.with({
|
||||
event: 'PROJECT_DELETE',
|
||||
data: project,
|
||||
projectId: project.id,
|
||||
user: inputs.request.currentUser,
|
||||
});
|
||||
}
|
||||
|
||||
return project;
|
||||
|
||||
@@ -108,6 +108,13 @@ module.exports = {
|
||||
inputs.request,
|
||||
);
|
||||
});
|
||||
|
||||
await sails.helpers.utils.sendWebhook.with({
|
||||
event: 'PROJECT_UPDATE',
|
||||
data: project,
|
||||
projectId: project.id,
|
||||
user: inputs.request.currentUser,
|
||||
});
|
||||
}
|
||||
|
||||
return project;
|
||||
|
||||
Reference in New Issue
Block a user