Skip to content

Commit

Permalink
feat: pass options.names as a second argument to a Vest suite
Browse files Browse the repository at this point in the history
  • Loading branch information
vonagam committed Jun 25, 2023
1 parent 420e862 commit 06c86ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vest/src/vest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const vestResolver: Resolver =
async (values, _context, options) => {
const result =
resolverOptions.mode === 'sync'
? schema(values)
: await promisify(schema)(values);
? schema(values, options.names)
: await promisify(schema)(values, options.names);

if (result.hasErrors()) {
return {
Expand Down

0 comments on commit 06c86ac

Please sign in to comment.