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!

use same naming as on the frontend side for the 'receive login notifications'

Blue Mousecda682d16881
diff --git a/apps/production/src/auth/auth.service.ts b/apps/production/src/auth/auth.service.ts
index 7fc2534df..0cec29264 100644
--- a/apps/production/src/auth/auth.service.ts
+++ b/apps/production/src/auth/auth.service.ts
@@ -223,7 +223,7 @@ export class AuthService {
) {
const user = await this.userService.findUserById(userId)
- if (!user.telegramChatId || !user.isReceiveLoginAlerts) {
+ if (!user.telegramChatId || !user.receiveLoginNotifications) {
return
}
diff --git a/apps/production/src/user/entities/user.entity.ts b/apps/production/src/user/entities/user.entity.ts
index 421aff5ef..dd7b0f6d4 100644
--- a/apps/production/src/user/entities/user.entity.ts
+++ b/apps/production/src/user/entities/user.entity.ts
@@ -279,7 +279,7 @@ export class User {
type: 'boolean',
default: false,
})
- isReceiveLoginAlerts: boolean
+ receiveLoginNotifications: boolean
@Column({
type: 'enum',