diff options
author | Samuel (Flam3rboy) <github@samuelscheit.com> | 2023-03-30 18:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 18:13:34 +0200 |
commit | 69ea71aa9e0bd2e5a98904a66fba0ad3745707cb (patch) | |
tree | 807384e6d19111a4e038113854bb28791814a8c7 /src/util/schemas/Validator.ts | |
parent | SPACEBAR (diff) | |
parent | feat: add DB_LOGGING env (diff) | |
download | server-69ea71aa9e0bd2e5a98904a66fba0ad3745707cb.tar.xz |
Merge pull request #1008 from spacebarchat/dev/samuel
Diffstat (limited to 'src/util/schemas/Validator.ts')
-rw-r--r-- | src/util/schemas/Validator.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/schemas/Validator.ts b/src/util/schemas/Validator.ts index 1de511d3..84677e25 100644 --- a/src/util/schemas/Validator.ts +++ b/src/util/schemas/Validator.ts @@ -43,7 +43,7 @@ export const ajv = new Ajv({ allowUnionTypes: true, }); -addFormats(ajv); +addFormats(ajv as never); export function validateSchema<G extends object>(schema: string, data: G): G { const valid = ajv.validate(schema, normalizeBody(data)); |