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 WebConfiguration from './configuration/webconfig';
|
||||||
import NullClusterClient from './io/cluster/nullclusterclient';
|
import NullClusterClient from './io/cluster/nullclusterclient';
|
||||||
import session from './session';
|
import session from './session';
|
||||||
import { BackendModule } from './backend/backendmodule';
|
|
||||||
import { LegacyModule } from './legacymodule';
|
import { LegacyModule } from './legacymodule';
|
||||||
|
|
||||||
var Server = function () {
|
var Server = function () {
|
||||||
|
@ -63,6 +62,7 @@ var Server = function () {
|
||||||
// backend init
|
// backend init
|
||||||
var initModule;
|
var initModule;
|
||||||
if (Config.get("new-backend")) {
|
if (Config.get("new-backend")) {
|
||||||
|
const BackendModule = require('./backend/backendmodule').BackendModule;
|
||||||
initModule = new BackendModule();
|
initModule = new BackendModule();
|
||||||
} else {
|
} else {
|
||||||
initModule = new LegacyModule();
|
initModule = new LegacyModule();
|
||||||
|
|
Loading…
Reference in New Issue