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!

update findProject

Yehor Dremliuha41ffc739d1a8
diff --git a/apps/production/src/project/project.service.ts b/apps/production/src/project/project.service.ts
index af3deb261..7f0f84b29 100644
--- a/apps/production/src/project/project.service.ts
+++ b/apps/production/src/project/project.service.ts
@@ -1280,7 +1280,7 @@ export class ProjectService {
await this.projectsRepository.update({ id }, data)
}
- async findProject(id:string){
- return await this.projectsRepository.findOne({id})
+ async findProject(id: string, relations: string[]) {
+ return this.projectsRepository.findOne({ relations, where: { id } })
}
}