diff --git a/backend/src/chat/chat.service.ts b/backend/src/chat/chat.service.ts index 14e62c33..d400d098 100644 --- a/backend/src/chat/chat.service.ts +++ b/backend/src/chat/chat.service.ts @@ -106,7 +106,6 @@ export class ChatService { async deleteChat(chatId: string): Promise { const chat = await this.chatRepository.findOne({ where: { id: chatId, isDeleted: false }, - relations: ['messages'], }); if (chat) { @@ -114,7 +113,6 @@ export class ChatService { chat.isDeleted = true; chat.isActive = false; await this.chatRepository.save(chat); - return true; } return false;