Skip to content

Commit

Permalink
Fix: Nested classes cause duplicate registering
Browse files Browse the repository at this point in the history
  • Loading branch information
incetarik committed Sep 27, 2022
1 parent ea8b78f commit 9bf9aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model-from-zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function modelFromZodBase<
...options,
name,
description,
getDecorator: options.getDecorator ?? (() => decorator)
getDecorator: options.getDecorator
})

for (const { descriptor, key, decorateFieldProperty } of parsed) {
Expand Down

0 comments on commit 9bf9aa8

Please sign in to comment.