From 02c8a101749b7f77c17ad71aa5dd394732c0487b Mon Sep 17 00:00:00 2001 From: Ilya Kolmakov Date: Fri, 1 Nov 2024 23:59:26 +0500 Subject: [PATCH] module7-task1: fix several bugs, delete comments --- src/shared/modules/user/default-user.service.ts | 2 +- src/shared/modules/user/user.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/modules/user/default-user.service.ts b/src/shared/modules/user/default-user.service.ts index c7fa559..ea853dd 100644 --- a/src/shared/modules/user/default-user.service.ts +++ b/src/shared/modules/user/default-user.service.ts @@ -69,7 +69,7 @@ export class DefaultUserService implements UserService { // return this.userModel.findById(userId); // offerService findMany id // } -// TODO: Как с помощью агрегации Монги найти элемент + // TODO: Как с помощью агрегации Монги найти элемент public async findFavoritesForUser(userId: string): Promise | null> { return this.userModel.findById(userId); } diff --git a/src/shared/modules/user/user.controller.ts b/src/shared/modules/user/user.controller.ts index a6846ad..8367c93 100644 --- a/src/shared/modules/user/user.controller.ts +++ b/src/shared/modules/user/user.controller.ts @@ -83,7 +83,7 @@ export class UserController extends BaseController { public async showUserFavorites(_: Request, res: Response) { // TODO: Токен берется из токена авторизации - const userId = "67152f430ace5d6726f44745" + const userId = '67152f430ace5d6726f44745'; const existsUser = await this.userService.findById(String(userId));