Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tacettinburakeren committed Nov 14, 2023
1 parent 53dd754 commit d8e980a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions ludos/backend/src/repositories/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export class UserRepository extends Repository<User> {
return this.findOneBy({ id });
}

public findUserById(id: string): Promise<User> {
return this.findOneBy({ id });
}

public async updateUserPassword(input: Partial<User>, newPassword: string) {
public async updateUserPassword(input: Partial<User>, newPassword: string) {
const user = await this.findUserByUsername(input.username);
user.password = newPassword;
await this.save(user);
Expand Down
4 changes: 0 additions & 4 deletions ludos/backend/src/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ export class UserService {
response.email = user.email;
response.username = user.username;
response.followedGames = user.followedGames;
response.fullName = user.fullName;
response.avatar = user.avatar;
response.aboutMe = user.aboutMe;
response.steamUrl = user.steamUrl;

return response;
}
Expand Down

0 comments on commit d8e980a

Please sign in to comment.