Explorar o código

bugfix: mongodb migration failed in heroku

Fumiya Karasawa %!s(int64=7) %!d(string=hai) anos
pai
achega
688fc6065b
Modificáronse 1 ficheiros con 1 adicións e 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