From 864f1a5c3ad60083b67c9eb13ef9bb1db4d4df60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20R=C3=B8svik?= Date: Thu, 13 Feb 2025 16:07:52 +0100 Subject: [PATCH] fix!: make purchasedBy optional The `purchasedBy` field was added in January 2024, meaning that older tickets doesn't have this field in Firestore. This was also an inconsistency with the ticket service, that uses `Option`. --- src/fare-contract/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fare-contract/types.ts b/src/fare-contract/types.ts index f0c247c..b6443a7 100644 --- a/src/fare-contract/types.ts +++ b/src/fare-contract/types.ts @@ -84,6 +84,6 @@ export const FareContractType = z.object({ totalTaxAmount: z.string(), travelRights: z.array(TravelRightType).nonempty(), version: z.string(), - purchasedBy: z.string(), + purchasedBy: z.string().optional(), }); export type FareContractType = z.infer;