📈 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
fix opengraph image counter
Blue Mousea61d85236181
diff --git a/backend/apps/cloud/src/project/project.service.ts b/backend/apps/cloud/src/project/project.service.tsindex d425172a2..b81860ba5 100644--- a/backend/apps/cloud/src/project/project.service.ts+++ b/backend/apps/cloud/src/project/project.service.ts@@ -1429,6 +1429,7 @@ export class ProjectService {await this.countVisitorsFromTo(pid, from, to),0,)+const desc = `${formatted} visitors in the last month`const html = this.getOgHTML(name, desc)@@ -1462,7 +1463,7 @@ export class ProjectService {): Promise<number> {const query = `SELECT- count(DISTINCT psid)+ count(DISTINCT psid) AS countFROM analyticsWHEREpid = {pid:FixedString(12)}@@ -1479,7 +1480,7 @@ export class ProjectService {}).then(resultSet => resultSet.json())- count = data[0]['count()']+ count = data[0]['count']} catch (reason) {console.error('[ERROR](project service -> countVisitorsFromTo) Error while counting visitors',