From 4aa09b7e9598e912362303b44172e87fd3e1e0e1 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 30 Oct 2023 13:57:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20unknown=20country=20in=20t?= =?UTF-8?q?RPC=20`citySchema`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/routers/weather.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/api/routers/weather.ts b/src/server/api/routers/weather.ts index 124f42d45..ac83728b3 100644 --- a/src/server/api/routers/weather.ts +++ b/src/server/api/routers/weather.ts @@ -5,8 +5,8 @@ import { adminProcedure, createTRPCRouter, publicProcedure } from '../trpc'; const citySchema = z.object({ id: z.number(), name: z.string(), - country: z.string(), - country_code: z.string(), + country: z.string().optional(), + country_code: z.string().optional(), latitude: z.number(), longitude: z.number(), population: z.number().optional(),