diff --git a/cli/template/extras/src/server/api/routers/post/with-drizzle.ts b/cli/template/extras/src/server/api/routers/post/with-drizzle.ts index 46968d214b..8c8ac78396 100644 --- a/cli/template/extras/src/server/api/routers/post/with-drizzle.ts +++ b/cli/template/extras/src/server/api/routers/post/with-drizzle.ts @@ -27,7 +27,7 @@ export const postRouter = createTRPCRouter({ const post = ctx.db.query.posts.findFirst({ orderBy: (posts, { desc }) => [desc(posts.createdAt)], }); - + return post ?? null; }), }); diff --git a/cli/template/extras/src/server/api/routers/post/with-prisma.ts b/cli/template/extras/src/server/api/routers/post/with-prisma.ts index b46d50b119..8337e2f1f8 100644 --- a/cli/template/extras/src/server/api/routers/post/with-prisma.ts +++ b/cli/template/extras/src/server/api/routers/post/with-prisma.ts @@ -29,6 +29,6 @@ export const postRouter = createTRPCRouter({ orderBy: { createdAt: "desc" }, }); - return post ?? null; + return post ?? null; }), });