mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 01:12:02 +03:00
feat: Move webhooks configuration from environment variable to UI
This commit is contained in:
@@ -20,6 +20,9 @@ module.exports = {
|
||||
scoper: {
|
||||
type: 'ref',
|
||||
},
|
||||
webhooks: {
|
||||
type: 'ref',
|
||||
},
|
||||
request: {
|
||||
type: 'ref',
|
||||
},
|
||||
@@ -172,8 +175,11 @@ module.exports = {
|
||||
);
|
||||
});
|
||||
|
||||
const { webhooks = await Webhook.qm.getAll() } = inputs;
|
||||
|
||||
sails.helpers.utils.sendWebhooks.with({
|
||||
event: 'projectUpdate',
|
||||
webhooks,
|
||||
event: Webhook.Events.PROJECT_UPDATE,
|
||||
buildData: () => ({
|
||||
item: project,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user