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<typeof ImageObjSchema>