From 92f8961d2e0ceff542a949c8bcfab0d79c04fe35 Mon Sep 17 00:00:00 2001 From: Julien Rousseau Date: Tue, 5 Dec 2023 12:17:36 -0500 Subject: [PATCH] updated data schema --- src/auth/schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/schemas.ts b/src/auth/schemas.ts index 2bbeae8..3713aa9 100644 --- a/src/auth/schemas.ts +++ b/src/auth/schemas.ts @@ -33,7 +33,7 @@ export const PayloadBody = z.object({ }), clock: ClockSchema, manifest: ManifestSchema, - data: EntityChanges.or(DatabaseChanges), + data: z.union([EntityChanges, DatabaseChanges, z.unknown()]), }); export type PayloadBody = z.infer;