📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added _isNull check
Blue Mouseb8ea5aeca803
diff --git a/src/user/user.service.ts b/src/user/user.service.tsindex 695b0e42e..5dce3b3a8 100644--- a/src/user/user.service.ts+++ b/src/user/user.service.ts@@ -5,6 +5,7 @@ import * as dayjs from 'dayjs'import * as _isEmpty from 'lodash/isEmpty'import * as _size from 'lodash/size'import * as _omit from 'lodash/omit'+import * as _isNull from 'lodash/isNull'import { Pagination, PaginationOptionsInterface } from '../common/pagination'import { User, ACCOUNT_PLANS, TRIAL_DURATION } from './entities/user.entity'@@ -231,7 +232,7 @@ export class UserService {isTelegramChatIdConfirmed = false,) {await this.usersRepository.update(userId, {- telegramChatId: String(telegramId),+ telegramChatId: _isNull(telegramId) ? null : String(telegramId),isTelegramChatIdConfirmed,})}