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!

returning pid for POST /alert

Blue Mouse3395ca2c0f31
diff --git a/src/alert/alert.controller.ts b/src/alert/alert.controller.ts
index 88fa7f65d..6346ad89a 100644
--- a/src/alert/alert.controller.ts
+++ b/src/alert/alert.controller.ts
@@ -115,7 +115,10 @@ export class AlertController {
await this.projectService.create(project)
- return newAlert
+ return {
+ ...newAlert,
+ pid: alertDTO.pid,
+ }
} catch (e) {
throw new BadRequestException(e)
}