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!

improvements

Blue Mouse3ee11ffd4b4a
diff --git a/src/common/templates/en/customer_sign-up.html b/src/common/templates/en/customer_sign-up.html
index 487f60719..279eba8c2 100644
--- a/src/common/templates/en/customer_sign-up.html
+++ b/src/common/templates/en/customer_sign-up.html
@@ -42,7 +42,7 @@
align="center"
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 44px; color: #1a1a1a;"
>
- Welcome at Swetrix Analytics!
+ Welcome to Swetrix Analytics!
</span>
</font>
<div style="height: 10px; line-height: 10px; font-size: 9px;">&nbsp;</div>
diff --git a/src/webhook/webhook.controller.ts b/src/webhook/webhook.controller.ts
index e4e882f6b..ab5f7ccab 100644
--- a/src/webhook/webhook.controller.ts
+++ b/src/webhook/webhook.controller.ts
@@ -39,9 +39,9 @@ export class WebhookController {
let uid
try {
- uid = JSON.parse(passthrough).uid
+ uid = JSON.parse(passthrough)?.uid
} catch {
- this.logger.error(`[${body.alert_name}] Cannot parse the uid: ${body}`)
+ this.logger.error(`[${body.alert_name}] Cannot parse the uid: ${JSON.stringify(body)}`)
}
const plan = _find(ACCOUNT_PLANS, (tier) => tier.pid === subscription_plan_id)