Skip to content

Commit

Permalink
Merge pull request #131 from WhyAsh5114/WhyAsh5114/issue128
Browse files Browse the repository at this point in the history
fix: add orderBy clause to the getExerciseHistory tRPC
  • Loading branch information
WhyAsh5114 authored Oct 18, 2024
2 parents 83292cf + da4ff04 commit 716d0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/trpc/routes/workouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export const workouts = t.router({
}
}
},
sets: { include: { miniSets: true } }
sets: { include: { miniSets: true }, orderBy: { setIndex: 'asc' } }
},
cursor: input.cursorId !== undefined ? { id: input.cursorId } : undefined,
skip: input.cursorId !== undefined ? 1 : 0,
Expand Down

0 comments on commit 716d0a5

Please sign in to comment.