Explorar el Código

bugfix: mongodb migration failed in heroku

Fumiya Karasawa hace 7 años
padre
commit
688fc6065b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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