mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 10:52:31 +01:00
Fix schemas handler
This commit is contained in:
parent
01883ab145
commit
e82d527283
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user