diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-13 17:42:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-13 17:42:12 +0900 |
| commit | 2654936c1746a69459f8066ca785efd722e527fa (patch) | |
| tree | 3626d42a300fe0b814f726551c6c98d29c26cf48 /packages/backend/src/server/api | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-2654936c1746a69459f8066ca785efd722e527fa.tar.gz sharkey-2654936c1746a69459f8066ca785efd722e527fa.tar.bz2 sharkey-2654936c1746a69459f8066ca785efd722e527fa.zip | |
fix
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/webhooks/update.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/webhooks/update.ts b/packages/backend/src/server/api/endpoints/i/webhooks/update.ts index 50098f96e7..8ec308eda7 100644 --- a/packages/backend/src/server/api/endpoints/i/webhooks/update.ts +++ b/packages/backend/src/server/api/endpoints/i/webhooks/update.ts @@ -67,7 +67,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { active: ps.active, }); - this.globalEventService.publishInternalEvent('webhookUpdated', webhook); + const updated = await this.webhooksRepository.findOneByOrFail({ + id: ps.webhookId, + }); + + this.globalEventService.publishInternalEvent('webhookUpdated', updated); }); } } |