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

@@ -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;