mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 17:23:27 +03:00
fix: Move webhooks declaration to correct position
This commit is contained in:
@@ -35,6 +35,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
const webhooks = await Webhook.qm.getAll();
|
||||
|
||||
if (inputs.record.id === inputs.card.coverAttachmentId) {
|
||||
await sails.helpers.cards.updateOne.with({
|
||||
webhooks,
|
||||
@@ -67,8 +69,6 @@ module.exports = {
|
||||
inputs.request,
|
||||
);
|
||||
|
||||
const webhooks = await Webhook.qm.getAll();
|
||||
|
||||
sails.helpers.utils.sendWebhooks.with({
|
||||
webhooks,
|
||||
event: Webhook.Events.ATTACHMENT_DELETE,
|
||||
|
||||
Reference in New Issue
Block a user