📈 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
fixed linking conflict
Blue Mouse77155e17bf17
diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.tsindex 28920e130..6f8cd65c2 100644--- a/src/auth/auth.service.ts+++ b/src/auth/auth.service.ts@@ -673,6 +673,16 @@ export class AuthService {)}+ const subUser = await this.userService.findOneWhere({+ googleId: sub,+ })++ if (subUser) {+ throw new BadRequestException(+ 'This Google account is already linked to another user',+ )+ }+const user = await this.userService.findUserById(userId)if (!user) {@@ -900,6 +910,16 @@ export class AuthService {)}+ const subUser = await this.userService.findOneWhere({+ githubId: id,+ })++ if (subUser) {+ throw new BadRequestException(+ 'This Github account is already linked to another user',+ )+ }+const user = await this.userService.findUserById(userId)if (!user) {