📈 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
formatting
Blue Mouse505b314efe6c
diff --git a/backend/apps/cloud/src/project/gsc.service.ts b/backend/apps/cloud/src/project/gsc.service.tsindex 136f39d8f..f04f3c084 100644--- a/backend/apps/cloud/src/project/gsc.service.ts+++ b/backend/apps/cloud/src/project/gsc.service.ts@@ -109,10 +109,9 @@ export class GSCService {await this.setStoredTokens(pid, toStore)// Persist connected account email separately- await this.projectService.update(- { id: pid },- { gscAccountEmail: accountEmail } as any,- )+ await this.projectService.update({ id: pid }, {+ gscAccountEmail: accountEmail,+ } as any)// One-time stateawait redis.del(REDIS_STATE_PREFIX + state)@@ -186,7 +185,9 @@ export class GSCService {return !_isEmpty(tokens?.refresh_token || tokens?.access_token)}- async getStatus(pid: string): Promise<{ connected: boolean; email: string | null }> {+ async getStatus(+ pid: string,+ ): Promise<{ connected: boolean; email: string | null }> {const connected = await this.isConnected(pid)if (!connected) return { connected, email: null }const project = await this.projectService.findOne({diff --git a/web/app/api/index.ts b/web/app/api/index.tsindex 5bcdc6f4e..ec6737de6 100644--- a/web/app/api/index.ts+++ b/web/app/api/index.ts@@ -1577,7 +1577,9 @@ export const getGSCKeywords = (headers: { 'x-password': password },}).then(- (response): {+ (+ response,+ ): {keywords: { name: string; count: number; impressions: number; position: number; ctr: number }[]} => response.data,)