chore: Disable eager loading apps
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
c48c905805
commit
6b1dee053f
@@ -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();
|
||||||
|
@@ -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}`);
|
|
||||||
})
|
|
||||||
}
|
|
Reference in New Issue
Block a user