much progress on layout the foundations of the Friendship page in the front, also refactored some code to reuse displaying a users profile info

This commit is contained in:
Me
2022-12-10 07:13:28 +01:00
parent 15ea27955b
commit 61828e5be7
8 changed files with 874 additions and 173 deletions

View File

@@ -50,6 +50,7 @@ export class UsersController {
@Get('search')
findOneByUsername(@Query('username') username: string, @Req() req) {
const user : User = req.user;
console.log('searching for user' + user.username);
return this.usersService.findOneByUsername(user.id.toString(),username);
}