Fix imports in cookies middleware

This commit is contained in:
dicedtomato
2020-09-17 16:09:20 +00:00
parent 0ce137a467
commit 8ae2f85a45
3 changed files with 7 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
import Logger from "@ayanaware/logger";
import { Request, Response } from "express";
import { BAD_REQUEST, INTERNAL_SERVER_ERROR, FORBIDDEN } from 'http-status-codes'
import { getConnection } from 'typeorm';
import { User } from "../entities/User";
import { findFile } from "../util";
import { readFileSync } from 'fs';
if (!findFile('config.json', process.cwd())) {
Logger.get('FS').error(`No config.json exists in ${__dirname}, exiting...`)