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!

4th fix

Blue Mousea44be6a3f592
diff --git a/src/alert/alert.controller.ts b/src/alert/alert.controller.ts
index 2f0441c34..88fa7f65d 100644
--- a/src/alert/alert.controller.ts
+++ b/src/alert/alert.controller.ts
@@ -54,10 +54,12 @@ export class AlertController {
const result = await this.alertService.paginate({ take, skip }, { project: In(pids) }, ['project'])
- return _map(result, (alert) => ({
+ result.results = _map(result.results, (alert) => ({
..._omit(alert, ['project']),
pid: alert.project.id,
}))
+
+ return result
}
@Post('/')