about summary refs log tree commit diff
diff options
context:
space:
mode:
-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