Skip to content

Commit

Permalink
fix: add item.creator in getItemLike for member response (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Oct 24, 2023
1 parent c3c0002 commit 4e06957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/item/plugins/itemLike/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const ItemLikeRepository = AppDataSource.getRepository(ItemLike).extend({
async getForMember(memberId: string): Promise<ItemLike[]> {
const itemLikes = await this.createQueryBuilder('itemLike')
.innerJoinAndSelect('itemLike.item', 'item')
.innerJoinAndSelect('item.creator', 'member')
.where('itemLike.creator = :memberId', { memberId })
.getMany();
return itemLikes;
Expand Down

0 comments on commit 4e06957

Please sign in to comment.