Skip to content

Commit

Permalink
feat(json-type): 🎸 use new expession execution syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 24, 2024
1 parent 4dbc780 commit 43cd177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-type/type/classes/OrType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class OrType<T extends Type[]> extends AbstractType<schema.OrSchema<{[K i
operators: operatorsMap,
});
const fn = codegen.run().compile();
return (this.__discriminator = (data: unknown) => +(fn({vars: new Vars(data)}) as any));
return (this.__discriminator = (data: unknown) => +(fn(new Vars(data)) as any));
}

public validateSchema(): void {
Expand Down

0 comments on commit 43cd177

Please sign in to comment.