summary refs log tree commit diff
path: root/src/util/schemas/Validator.ts
diff options
context:
space:
mode:
authorSamuel (Flam3rboy) <github@samuelscheit.com>2023-03-30 18:13:34 +0200
committerGitHub <noreply@github.com>2023-03-30 18:13:34 +0200
commit69ea71aa9e0bd2e5a98904a66fba0ad3745707cb (patch)
tree807384e6d19111a4e038113854bb28791814a8c7 /src/util/schemas/Validator.ts
parentSPACEBAR (diff)
parentfeat: add DB_LOGGING env (diff)
downloadserver-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.ts2
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));