3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

Fix error when compiling ormconfig

This commit is contained in:
Dragory 2022-06-26 15:02:34 +03:00
parent e760654c54
commit 6b44027eb4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 19 additions and 30 deletions

View file

@ -1,7 +1,11 @@
import { Connection, createConnection } from "typeorm";
import { SimpleError } from "../SimpleError";
import connectionOptions from "../../ormconfig";
import { QueryLogger } from "./queryLogger";
import path from "path";
import { backendDir } from "../paths";
const ormconfigPath = path.join(backendDir, "ormconfig.js");
const connectionOptions = require(ormconfigPath);
let connectionPromise: Promise<Connection>;