📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
returning shared in GET project
Blue Mouseb21e13b9b63b
diff --git a/src/project/project.controller.ts b/src/project/project.controller.tsindex 25808c606..6d2b2ad7a 100644--- a/src/project/project.controller.ts+++ b/src/project/project.controller.ts@@ -97,12 +97,19 @@ export class ProjectController {{ take, skip },where,)+ const shared = await this.projectService.findShare({+ where: {+ user: userId,+ },+ relations: ['project'],+ })const totalMonthlyEvents = await this.projectService.getRedisCount(userId,)return {...paginated,+ shared,totalMonthlyEvents,}}diff --git a/src/project/project.service.ts b/src/project/project.service.tsindex 9cae310b7..0ed3b122f 100644--- a/src/project/project.service.ts+++ b/src/project/project.service.ts@@ -34,7 +34,7 @@ export class ProjectService {async paginate(options: PaginationOptionsInterface, where: Record<string, unknown> | undefined): Promise<Pagination<Project>> {const [results, total] = await this.projectsRepository.findAndCount({- take: options.take || 10,+ take: options.take || 100,skip: options.skip || 0,where,order: {