Skip to content

Commit

Permalink
Fix validateStoreAccountEventBody
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jun 1, 2023
1 parent 5503f8f commit c02d906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/schema/validate-store-account-event-body.ts
Expand Up @@ -99,7 +99,7 @@ export function validateStoreAccountEventBody(data: unknown): Result<
if (validate(data)) {
return ok(data);
} else {
const errors = ajv.errors;
const errors = validate.errors;
if (errors === undefined || errors === null)
throw new Error("assert(errors !== undefined && errors !== null)");
return err(errors);
Expand Down

0 comments on commit c02d906

Please sign in to comment.