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!

added isOwner for GET /project

Blue Mousec349d69fa1f9
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index 92e46bbbf..20e4371b6 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -135,6 +135,11 @@ export class ProjectController {
)
const totalMonthlyEvents = await this.projectService.getRedisCount(userId)
+ paginated.results = _map(paginated.results, p => ({
+ ...p,
+ isOwner: true,
+ }))
+
return {
...paginated,
totalMonthlyEvents,