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

Commit

Permalink
feat: Add Drop change history
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Dec 16, 2024
1 parent d325d36 commit 62c04e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 62c04e1

Please sign in to comment.