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!

fix: websiteUrl not updating

Blue Mouse13579844335b
diff --git a/backend/apps/community/src/common/utils.ts b/backend/apps/community/src/common/utils.ts
index cd5781e94..159ec8b75 100644
--- a/backend/apps/community/src/common/utils.ts
+++ b/backend/apps/community/src/common/utils.ts
@@ -122,6 +122,7 @@ const ALLOWED_KEYS = [
'isPasswordProtected',
'passwordHash',
'botsProtectionLevel',
+ 'websiteUrl',
]
const CLICKHOUSE_PROJECT_UPDATABLE_KEYS = [...ALLOWED_KEYS, 'adminId']
@@ -447,7 +448,7 @@ const deleteProjectSharesByUserIdClickhouse = async (userId: string) => {
}
const createProjectClickhouse = async (project: Partial<Project>) => {
- const { id, name, adminId } = project
+ const { id, name, adminId, websiteUrl } = project
await clickhouse.insert({
table: 'project',
@@ -465,6 +466,7 @@ const createProjectClickhouse = async (project: Partial<Project>) => {
passwordHash: null,
botsProtectionLevel: BotsProtectionLevel.BASIC,
adminId: adminId || null,
+ websiteUrl: websiteUrl || null,
created: dayjs.utc().format('YYYY-MM-DD HH:mm:ss'),
},
],