@Get('findOne/:username')
async getUserByUsername(
@Req() username: string,
): Promise<UserEntity['id'] | undefined> {
// return await this.usersService.findOne(username);
return username;
@Get('findOne/:username')
async getUserByUsername(
@Param('username') username: string,
): Promise<UserEntity['id'] | undefined> {
return await this.usersService.findOne(username);
}