From 5489cabc9dd30617ad0e83d72c9b6da2c8e2053e Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Sat, 1 Jan 2022 20:59:08 +0300 Subject: Fix schemas handler --- api/src/util/handlers/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({ -- cgit 1.4.1