From a5f3aa3e4e148729fa77bede96aee44763c7d767 Mon Sep 17 00:00:00 2001 From: GeekaN2 Date: Sun, 22 Oct 2023 02:52:40 +0300 Subject: [PATCH] fix: remove undefined --- src/domain/service/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/service/user.ts b/src/domain/service/user.ts index 1fd63cb8..3fff0127 100644 --- a/src/domain/service/user.ts +++ b/src/domain/service/user.ts @@ -51,10 +51,10 @@ export default class UserService { * * @param userId - user unique identifier */ - public async getUserExtensions(userId: User['id']): Promise { + public async getUserExtensions(userId: User['id']): Promise { const user = await this.getUserById(userId); - return user?.extensions; + return user?.extensions ?? {}; } /**