From 18139929796b1eef018ec22e2faceecba5f5e48f Mon Sep 17 00:00:00 2001 From: Caleb Hill Date: Mon, 18 Nov 2024 13:31:31 -0700 Subject: [PATCH] make image id optional There is one of the snowboards (the 16th in the list) that doesn't have ids for its images which causes the backend query to fail. --- shared/src/model/image.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/model/image.model.ts b/shared/src/model/image.model.ts index c6b1921..6c5c184 100644 --- a/shared/src/model/image.model.ts +++ b/shared/src/model/image.model.ts @@ -2,6 +2,6 @@ import { Static, Type } from '@fastify/type-provider-typebox' export const ImageObjSchema = Type.Object({ url: Type.String(), - id: Type.String() + id: Type.Optional(Type.String()) }) export type ImageObj = Static