Skip to content

Commit

Permalink
module7-task1: fix several bugs, delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JIlyaS committed Nov 1, 2024
1 parent 1304df3 commit 02c8a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/modules/user/default-user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DocumentType<UserEntity> | null> {
return this.userModel.findById(userId);
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 02c8a10

Please sign in to comment.