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!

lint:fix

Blue Mouse92acaa58f66a
diff --git a/apps/production/src/user/user.controller.ts b/apps/production/src/user/user.controller.ts
index 933373fc9..f6fde1957 100644
--- a/apps/production/src/user/user.controller.ts
+++ b/apps/production/src/user/user.controller.ts
@@ -617,13 +617,11 @@ export class UserController {
@Get('metainfo')
@Public()
- async getMetaInfo(
- @Headers() headers,
- ): Promise<any> {
+ async getMetaInfo(@Headers() headers): Promise<any> {
const country = headers['cf-ipcountry'] || 'XX'
return {
- country: (country === 'XX' || country === 'T1') ? null : country,
+ country: country === 'XX' || country === 'T1' ? null : country,
...this.userService.getCurrencyByCountry(country),
}
}
diff --git a/apps/production/src/user/user.service.ts b/apps/production/src/user/user.service.ts
index 7dacf1110..57d9e0de6 100644
--- a/apps/production/src/user/user.service.ts
+++ b/apps/production/src/user/user.service.ts
@@ -30,7 +30,9 @@ const GBP = {
}
export const CURRENCIES = {
- EUR, USD, GBP,
+ EUR,
+ USD,
+ GBP,
}
const CURRENCY_BY_COUNTRY = {
@@ -283,6 +285,6 @@ export class UserService {
}
getCurrencyByCountry(country: string) {
- return CURRENCY_BY_COUNTRY[country] || USD
+ return CURRENCY_BY_COUNTRY[country] || GBP
}
}