Skip to content

Commit

Permalink
Fixed a server error, when registering a user that was previously sof…
Browse files Browse the repository at this point in the history
…t-deleted.
  • Loading branch information
Alfagun74 committed Oct 26, 2024
1 parent 060558d commit ce766cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- [#286](https://github.com/Phalcode/gamevault-backend/issues/286) Implemented workaround for [Nestjs-Schedule regression](https://github.com/nestjs/schedule/issues/1794).
- Optimized Indexer
- Fixed a server error, when registering a user that was previously soft-deleted.

## 13.1.0

Expand Down
1 change: 1 addition & 0 deletions src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export class UsersService implements OnApplicationBootstrap {
const existingUser = await this.userRepository.findOne({
where,
relationLoadStrategy: "query",
withDeleted: true,
});

if (existingUser) {
Expand Down

0 comments on commit ce766cf

Please sign in to comment.