Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix missing pid on alert update

Blue Mouse95c77659ec45
diff --git a/src/alert/alert.controller.ts b/src/alert/alert.controller.ts
index 21961e516..cc03b2cb7 100644
--- a/src/alert/alert.controller.ts
+++ b/src/alert/alert.controller.ts
@@ -156,7 +156,10 @@ export class AlertController {
await this.alertService.update(id, _omit(alert, ['project', 'lastTriggered']))
- return alert
+ return {
+ ..._omit(alert, ['project']),
+ pid: alert.project.id,
+ }
}
@Delete('/:id')