1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

feat: Events via webhook (#771)

Closes #215, closes #656
This commit is contained in:
HannesOberreiter 2024-06-06 20:22:14 +02:00 committed by GitHub
parent c0b694039e
commit 193daf6cfb
38 changed files with 416 additions and 9 deletions

View file

@ -21,6 +21,10 @@ module.exports = {
custom: valuesValidator,
required: true,
},
board: {
type: 'ref',
required: true,
},
request: {
type: 'ref',
},
@ -67,6 +71,14 @@ module.exports = {
},
inputs.request,
);
await sails.helpers.utils.sendWebhook.with({
event: 'LIST_UPDATE',
data: list,
projectId: inputs.board.projectId,
user: inputs.request.currentUser,
board: inputs.board,
});
}
return list;