chore: Disable eager loading apps

This commit is contained in:
Faruk AYDIN
2021-11-17 20:17:29 +01:00
committed by Ömer Faruk Aydın
parent c48c905805
commit 6b1dee053f
2 changed files with 0 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ import morgan from './helpers/morgan';
import appAssetsHandler from './helpers/app-assets-handler'; import appAssetsHandler from './helpers/app-assets-handler';
import errorHandler from './helpers/error-handler'; import errorHandler from './helpers/error-handler';
import './config/database'; import './config/database';
import './helpers/eager-load-apps';
import authentication from './helpers/authentication'; import authentication from './helpers/authentication';
const app = express(); const app = express();

View File

@@ -1,10 +0,0 @@
import App from '../models/app';
import appConfig from '../config/app';
if(appConfig.appEnv === 'development') {
const apps = App.findAll();
apps.forEach((app: any) => {
import(`../apps/${app.key}`);
})
}