remove slow call emulation from ct3a
This commit is contained in:
@@ -17,9 +17,6 @@ export const postRouter = createTRPCRouter({
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.mutation(async ({ ctx, input }) => {
|
.mutation(async ({ ctx, input }) => {
|
||||||
// simulate a slow db call
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
||||||
|
|
||||||
return ctx.db.post.create({
|
return ctx.db.post.create({
|
||||||
data: {
|
data: {
|
||||||
name: input.name,
|
name: input.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user