Fix schemas handler

This commit is contained in:
Thesourtimes
2022-01-01 20:59:08 +03:00
parent ccad0c39be
commit 5489cabc9d
+1 -1
View File
@@ -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({