Skip to content

Commit

Permalink
bugfix: Feedback一覧取得時にlimitを入れ忘れていたのを修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
Karibash committed Dec 2, 2024
1 parent ce41626 commit 369f937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/graphql/usecases/feedbacks/queries/feedbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const query = ResultAsync.fromThrowable((input: FeedbacksInput) => {
.select()
.from(schema.feedbacks)
.where(and(...filters))
.orderBy(desc(schema.feedbacks.createdAt));
.orderBy(desc(schema.feedbacks.createdAt))
.limit(input.limit);
});

export const feedbacks: Feedbacks = (input) => {
Expand Down

0 comments on commit 369f937

Please sign in to comment.