Browse Source

bugfix: mongodb migration failed in heroku

Fumiya Karasawa 7 years ago
parent
commit
688fc6065b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/migrate.js

+ 1 - 1
config/migrate.js

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