Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
fix: partial DropTypeChange data
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Dec 17, 2024
1 parent 0a41d9e commit 4d15f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ export const audit = z.discriminatedUnion("action", [
dropId: z.string(),
type: z.nativeEnum(DropType),
data: drop.omit({ _id: true, user: true }).extend({
songs: song.omit({ user: true, file: true }).array()
})
songs: song.omit({ user: true, file: true }).array(),
}).partial(), // Partial because frontend type must match the backend type
}),
z.object({
action: z.literal(AuditTypes.DropCreate),
Expand Down

0 comments on commit 4d15f31

Please sign in to comment.