fix: add previous value as optional

This commit is contained in:
nivedin
2024-05-17 00:00:13 +05:30
parent f8ac6dfeb1
commit fc9f933905

View File

@@ -400,7 +400,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret
).and(
z.object({
previousValue: z.string(),
previousValue: z.string().optional(),
})
)
),
@@ -415,7 +415,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret
).and(
z.object({
previousValue: z.string(),
previousValue: z.string().optional(),
})
)
),