From 08001021ddfe32d40d2afd0a089ef3edcd3f4b11 Mon Sep 17 00:00:00 2001 From: awais-codes Date: Thu, 9 May 2024 00:35:26 +0500 Subject: [PATCH] fix: zod errors in spec test files --- server/src/services/item/addItemGlobalService.ts | 1 + server/src/tests/routes/trip.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/server/src/services/item/addItemGlobalService.ts b/server/src/services/item/addItemGlobalService.ts index 896d7d57f..fd6cd4e21 100644 --- a/server/src/services/item/addItemGlobalService.ts +++ b/server/src/services/item/addItemGlobalService.ts @@ -20,6 +20,7 @@ export const addItemGlobalService = async ( quantity: number, unit: string, type: 'Food' | 'Water' | 'Essentials', + ownerId: string, ) => { let category: InsertItemCategory | null; if (!categories.includes(type)) { diff --git a/server/src/tests/routes/trip.spec.ts b/server/src/tests/routes/trip.spec.ts index c9b29eedb..8d633d1c5 100644 --- a/server/src/tests/routes/trip.spec.ts +++ b/server/src/tests/routes/trip.spec.ts @@ -88,6 +88,7 @@ describe('Trip Routes', () => { type: 'FeatureCollection' as const, features: [], }, + is_public: '1' as const, }; const createdTrip = await caller.addTrip(input);