Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiet1618 committed Nov 23, 2023
1 parent 0836ac7 commit 2692d88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ import { UserService, WalletService, SocialUserService, NftService } from "src/s
export class UserController {
constructor(
private readonly userService: UserService,
private readonly walletService: WalletService,
private readonly socialUserService: SocialUserService,
private readonly nftService: NftService
) { }

@Get(":id")
async getUserById(@Param("id") id: string) {
const info = await this.userService.findUserById(id);
const wallet = await this.walletService.findWalletById(info.id);
const socialUser = await this.socialUserService.findSocialUserById(info.id);
const listUserByFlowing = await this.userService.findUserByListId(socialUser?.following || []);
const listUserByFlowers = await this.userService.findUserByListId(socialUser?.follower || []);
Expand Down

0 comments on commit 2692d88

Please sign in to comment.