Skip to content

Commit

Permalink
Fetch users with guild members
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoins committed Aug 5, 2021
1 parent 6e0b1a5 commit 3b20899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/src/services/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class GuildService implements IGuildService {
}

public async findUsers(id: string) {
return this.guildUserRepository.find({ where: { guild: { id } } })
return this.guildUserRepository.find({ where: { guild: { id } }, relations: ['user'] })
}

public findUserById(id: string, userId: string) {
Expand Down

0 comments on commit 3b20899

Please sign in to comment.