Skip to content

Commit

Permalink
release: 2024-04-11c (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow authored Apr 11, 2024
2 parents eec9e00 + 7275445 commit 7d809c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/api/routers/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export const storyRouter = createTRPCRouter({
response2EN: true,
},
...(input.take ? { take: input.take } : {}),
orderBy: { createdAt: 'desc' },
})
const formatted = stories.map(({ categories, pronouns, response1EN, response2EN, ...rest }) => ({
...rest,
Expand Down Expand Up @@ -209,6 +210,7 @@ export const storyRouter = createTRPCRouter({
response2ES: true,
},
...(input.take ? { take: input.take } : {}),
orderBy: { createdAt: 'desc' },
})
const formatted = stories.map(({ categories, pronouns, response1ES, response2ES, ...rest }) => ({
...rest,
Expand Down

0 comments on commit 7d809c2

Please sign in to comment.