Skip to content

Commit

Permalink
Merge pull request #1664 from gettakaro/issue1663
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele authored Oct 14, 2024
2 parents a6bd37c + 1db9e11 commit c8e3cbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
21 changes: 12 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/app-api/src/db/playerOnGameserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export class PlayerOnGameServerRepo extends ITakaroRepo<

async findOne(id: string): Promise<PlayerOnGameserverOutputWithRolesDTO> {
const { query } = await this.getModel();
const data = (await query.findById(id)) as unknown as PlayerOnGameserverOutputWithRolesDTO;
const data = (await query
.findById(id)
.withGraphFetched('player')) as unknown as PlayerOnGameserverOutputWithRolesDTO;

if (!data) {
throw new errors.NotFoundError();
Expand Down

0 comments on commit c8e3cbc

Please sign in to comment.