From 155f8ceb5daf082649c4babe39324dea5a43427e Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Sun, 7 Jun 2026 17:53:06 +0100 Subject: [PATCH] Normalize autoupdate library prop --- src/utils/metadata.schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/metadata.schema.ts b/src/utils/metadata.schema.ts index a43c0db..dc53957 100644 --- a/src/utils/metadata.schema.ts +++ b/src/utils/metadata.schema.ts @@ -30,6 +30,10 @@ export const librarySchema = z.object({ target: z.string(), }), ]) + .transform((autoupdate) => ({ + source: 'type' in autoupdate ? autoupdate.type : autoupdate.source, + target: autoupdate.target, + })) .optional(), });