From 1032e65a0d25f74f8648bfaa9129d9132356cdd5 Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Mon, 13 Jun 2022 18:51:35 -0700 Subject: [PATCH] refactor: remove unused import in playground --- playground/server/trpc/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/server/trpc/index.ts b/playground/server/trpc/index.ts index 5472076..2a72244 100644 --- a/playground/server/trpc/index.ts +++ b/playground/server/trpc/index.ts @@ -2,7 +2,6 @@ import * as trpc from '@trpc/server' import type { inferAsyncReturnType } from '@trpc/server' import { z } from 'zod' import type { CompatibilityEvent } from 'h3' -import { useCookies } from 'h3' const baseURL = 'https://jsonplaceholder.typicode.com' @@ -30,6 +29,7 @@ export const router = trpc.router() .mutation('addTodo', { input: TodoShape, async resolve(req) { + console.log(req.input) return await $fetch(`${baseURL}/todos`, { method: 'POST', body: req.input,