From 4dff1a34acaaf9b55b4bf6dbd3f83816ba814580 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 23 Aug 2021 15:42:00 +0100 Subject: [PATCH 1/3] posthog cloud config --- packages/cli/src/constants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/constants.js b/packages/cli/src/constants.js index fe7c61f4fa..8b9cad88a8 100644 --- a/packages/cli/src/constants.js +++ b/packages/cli/src/constants.js @@ -15,5 +15,5 @@ exports.AnalyticsEvents = { SelfHostInit: "hosting_init", } -exports.BUDIBASE_POSTHOG_URL = "https://posthog.budi.live" -exports.BUDIBASE_POSTHOG_TOKEN = "Oeq9KzIpZYaNsXIvHw5QTZWNpfiG_EOjAOpjTyAiitY" +exports.BUDIBASE_POSTHOG_URL = "https://app.posthog.com" +exports.BUDIBASE_POSTHOG_TOKEN = "phc_yGOn4i7jWKaCTapdGR6lfA4AvmuEQ2ijn5zAVSFYPlS" From 52b51e9873665acbc38adfec4b07579886c4c6af Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 23 Aug 2021 15:56:54 +0100 Subject: [PATCH 2/3] spacing in analytics --- packages/builder/src/analytics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/analytics.js b/packages/builder/src/analytics.js index bcc59eb311..7442816aa5 100644 --- a/packages/builder/src/analytics.js +++ b/packages/builder/src/analytics.js @@ -79,6 +79,7 @@ const isFeedbackTimeElapsed = sinceDateStr => { const feedbackMilliseconds = feedbackHours * 60 * 60 * 1000 return Date.now() > sinceDate + feedbackMilliseconds } + function submitFeedback(values) { if (!analyticsEnabled || !process.env.POSTHOG_TOKEN) return localStorage.setItem(FEEDBACK_SUBMITTED_KEY, Date.now()) From 324f64c79016a360ebdb70fe2f1d6f776cb3e02a Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 23 Aug 2021 16:38:09 +0100 Subject: [PATCH 3/3] lint --- packages/cli/src/constants.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/constants.js b/packages/cli/src/constants.js index 8b9cad88a8..7a3b1463ca 100644 --- a/packages/cli/src/constants.js +++ b/packages/cli/src/constants.js @@ -16,4 +16,5 @@ exports.AnalyticsEvents = { } exports.BUDIBASE_POSTHOG_URL = "https://app.posthog.com" -exports.BUDIBASE_POSTHOG_TOKEN = "phc_yGOn4i7jWKaCTapdGR6lfA4AvmuEQ2ijn5zAVSFYPlS" +exports.BUDIBASE_POSTHOG_TOKEN = + "phc_yGOn4i7jWKaCTapdGR6lfA4AvmuEQ2ijn5zAVSFYPlS"