summary refs log tree commit diff
diff options
context:
space:
mode:
authorThesourtimes <cckhmck@gmail.com>2022-01-01 20:59:08 +0300
committerThesourtimes <cckhmck@gmail.com>2022-01-01 20:59:08 +0300
commit5489cabc9dd30617ad0e83d72c9b6da2c8e2053e (patch)
treebdb969b829c5de59cf94708591e75168ee10c511
parentCorrect the format (diff)
downloadserver-5489cabc9dd30617ad0e83d72c9b6da2c8e2053e.tar.xz
Fix schemas handler
-rw-r--r--api/src/util/handlers/route.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/handlers/route.ts b/api/src/util/handlers/route.ts
index ef6c8571..05658ad3 100644
--- a/api/src/util/handlers/route.ts
+++ b/api/src/util/handlers/route.ts
@@ -18,7 +18,7 @@ import Ajv from "ajv";
 import { AnyValidateFunction } from "ajv/dist/core";
 import addFormats from "ajv-formats";
 
-const SchemaPath = path.join(__dirname, "..", "..", "assets", "schemas.json");
+const SchemaPath = path.join(__dirname, "..", "..", "..", "assets", "schemas.json");
 const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
 
 export const ajv = new Ajv({