mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 17:23:21 +03:00
feat: Move webhooks configuration from environment variable to UI
This commit is contained in:
@@ -228,8 +228,11 @@ module.exports = {
|
||||
inputs.request,
|
||||
);
|
||||
|
||||
const webhooks = await Webhook.qm.getAll();
|
||||
|
||||
sails.helpers.utils.sendWebhooks.with({
|
||||
event: 'cardCreate',
|
||||
webhooks,
|
||||
event: Webhook.Events.CARD_CREATE,
|
||||
buildData: () => ({
|
||||
item: card,
|
||||
included: {
|
||||
@@ -272,6 +275,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
await sails.helpers.actions.createOne.with({
|
||||
webhooks,
|
||||
values: {
|
||||
card,
|
||||
type: Action.Types.CREATE_CARD, // TODO: introduce separate type?
|
||||
|
||||
Reference in New Issue
Block a user