mirror of https://github.com/calzoneman/sync.git
Move BackendModule import
This commit is contained in:
parent
39e3978161
commit
98d3090c7d
|
@ -47,7 +47,6 @@ import IOConfiguration from './configuration/ioconfig';
|
|||
import WebConfiguration from './configuration/webconfig';
|
||||
import NullClusterClient from './io/cluster/nullclusterclient';
|
||||
import session from './session';
|
||||
import { BackendModule } from './backend/backendmodule';
|
||||
import { LegacyModule } from './legacymodule';
|
||||
|
||||
var Server = function () {
|
||||
|
@ -63,6 +62,7 @@ var Server = function () {
|
|||
// backend init
|
||||
var initModule;
|
||||
if (Config.get("new-backend")) {
|
||||
const BackendModule = require('./backend/backendmodule').BackendModule;
|
||||
initModule = new BackendModule();
|
||||
} else {
|
||||
initModule = new LegacyModule();
|
||||
|
|
Loading…
Reference in New Issue