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:
parent
e760654c54
commit
6b44027eb4
4 changed files with 19 additions and 30 deletions
|
@ -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>;
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ import { z } from "zod";
|
|||
const envType = z.object({
|
||||
KEY: z.string().length(32),
|
||||
|
||||
CLIENT_ID: z.string(),
|
||||
CLIENT_SECRET: z.string(),
|
||||
BOT_TOKEN: z.string(),
|
||||
CLIENT_ID: z.string().min(16),
|
||||
CLIENT_SECRET: z.string().length(32),
|
||||
BOT_TOKEN: z.string().min(50),
|
||||
|
||||
OAUTH_CALLBACK_URL: z.string().url(),
|
||||
DASHBOARD_DOMAIN: z.string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue