mirror of https://gitee.com/bigwinds/arangodb
Set default value for app deps.
This commit is contained in:
parent
89216506b8
commit
5289e9911f
|
@ -186,7 +186,7 @@ var computeRootAppPath = function(mount, isValidation) {
|
|||
this.configure(cfg);
|
||||
|
||||
var depsLookup = {};
|
||||
var deps = config.options.dependencies;
|
||||
var deps = config.options.dependencies || {};
|
||||
this._options.dependencies = deps;
|
||||
this._dependencies = depsLookup;
|
||||
_.each(deps, function (mount, name) {
|
||||
|
@ -197,7 +197,7 @@ var computeRootAppPath = function(mount, isValidation) {
|
|||
return require("org/arangodb/foxx").requireApp(mount);
|
||||
}
|
||||
});
|
||||
}, this);
|
||||
});
|
||||
|
||||
this._context = new AppContext(this);
|
||||
this._context.appPackage = module.createAppPackage(this);
|
||||
|
|
Loading…
Reference in New Issue