From bdcd97576ab7d76f99556c353839d375b5cea09d Mon Sep 17 00:00:00 2001 From: alex 3 Date: Sun, 5 Nov 2023 23:10:55 -0500 Subject: [PATCH] remove slow call emulation from ct3a --- src/server/api/routers/post.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/server/api/routers/post.ts b/src/server/api/routers/post.ts index 93ab1dd..4e00708 100644 --- a/src/server/api/routers/post.ts +++ b/src/server/api/routers/post.ts @@ -17,9 +17,6 @@ export const postRouter = createTRPCRouter({ }) ) .mutation(async ({ ctx, input }) => { - // simulate a slow db call - await new Promise((resolve) => setTimeout(resolve, 1000)); - return ctx.db.post.create({ data: { name: input.name,