Преглед изворни кода

Merge pull request #780 from fmy/patch-2

bugfix: mongodb migration failed in heroku
Yuki Takei пре 7 година
родитељ
комит
755ee3a926
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      config/migrate.js

+ 1 - 1
config/migrate.js

@@ -18,7 +18,7 @@ const match = mongoUri.match(/^(.+)\/([^/]+)$/);
 module.exports = {
   mongoUri,
   mongodb: {
-    url: match[1],
+    url: match[0],
     databaseName: match[2],
     options: {
       useNewUrlParser: true, // removes a deprecation warning when connecting