diff --git a/js/server/modules/org/arangodb/foxx.js b/js/server/modules/org/arangodb/foxx.js index 7b547d11b8..6dbf4ddbcd 100644 --- a/js/server/modules/org/arangodb/foxx.js +++ b/js/server/modules/org/arangodb/foxx.js @@ -159,7 +159,7 @@ _.extend(Application.prototype, { }, registerRepository: function (name, opts) { - this.routingInfo.repositories[name] = opts; + this.routingInfo.repositories[name] = opts || {}; }, ////////////////////////////////////////////////////////////////////////////////