Skip to content

Commit

Permalink
fix: user me return object (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes authored Jul 4, 2024
1 parent 789e943 commit e376454
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export class UserController {
@Get('/me')
@UseGuards(FirebaseAuthGuard)
async getUserByFirebaseId(@Req() req: Request): Promise<GetUserDto> {
const user = req['userEntity'];
this.userService.updateUser({ lastActiveAt: new Date() }, user.id);
return user;
const user = req['user'];
this.userService.updateUser({ lastActiveAt: new Date() }, user.user.id);
return user as GetUserDto;
}

/**
Expand Down

0 comments on commit e376454

Please sign in to comment.