From 62c04e11d388b50f0090014c9dd327e8356fe330 Mon Sep 17 00:00:00 2001 From: Schlauer-Hax Date: Mon, 16 Dec 2024 23:11:20 +0100 Subject: [PATCH] feat: Add Drop change history --- spec/music.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/music.ts b/spec/music.ts index 5e19d58..7564ba2 100644 --- a/spec/music.ts +++ b/spec/music.ts @@ -568,6 +568,9 @@ export const audit = z.discriminatedUnion("action", [ action: z.literal(AuditTypes.DropTypeChange), dropId: z.string(), type: z.nativeEnum(DropType), + data: drop.omit({ _id: true, user: true }).extend({ + songs: song.omit({ user: true, file: true }).array() + }) }), z.object({ action: z.literal(AuditTypes.DropCreate),