about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAyumu AIZAWA <ayumu.aizawa@gmail.com>2017-05-11 18:23:24 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-11 11:23:24 +0200
commitb913746752b86062a951635758bfd13a5b0f5dcc (patch)
tree2c6a75bb6f0e7f31b510e9164637e81128ad1b83
parent9cd3a6836b952bda507734b6a476dfaa9b4640fb (diff)
[bug] wrong config setting for dababase. (#2984)
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index d3fb8d647..a9197624b 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -37,7 +37,7 @@ const dbUrlToConfig = (dbUrl) => {
   }
 
   if (params.pathname) {
-    config.database = params.params.pathname.split('/')[1]
+    config.database = params.pathname.split('/')[1]
   }
 
   const ssl = params.query && params.query.ssl