mirror of https://gitee.com/bigwinds/arangodb
use empty object if no options are given
This commit is contained in:
parent
d7443f5caa
commit
16e23e1204
|
@ -159,7 +159,7 @@ _.extend(Application.prototype, {
|
|||
},
|
||||
|
||||
registerRepository: function (name, opts) {
|
||||
this.routingInfo.repositories[name] = opts;
|
||||
this.routingInfo.repositories[name] = opts || {};
|
||||
},
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue