瀏覽代碼

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