Skip to content

Commit

Permalink
fix: 받은 떡국 재료 조회 API 수정 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
mungmnb777 authored Feb 7, 2024
1 parent 4ebad6a commit 524b2ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public record ReceivedIngredientResponse(
String nickname,
Ingredient ingredient,
String message,
boolean access
boolean access,
Long supportedTteokgukId
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public List<ReceivedIngredientResponse> getReceivedIngredientResponse(
return query
.select(getReceivedIngredientResponseConstructorExpression())
.from(support)
.where(support.id.in(supportIds))
.where(support.id.in(supportIds).and(support.supportedTteokguk.deleted.eq(false)))
.orderBy(support.id.desc())
.fetch();
}
Expand Down Expand Up @@ -70,7 +70,8 @@ private ConstructorExpression<ReceivedIngredientResponse> getReceivedIngredientR
support.sender.nickname,
support.supportIngredient,
support.message,
support.access
support.access,
support.supportedTteokguk.id
);
}
}

0 comments on commit 524b2ec

Please sign in to comment.