瀏覽代碼

fix: set enableArithAbort explicit value for tedious driver

NGPixel 4 年之前
父節點
當前提交
9762bdc2ce
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      server/core/db.js

+ 6 - 0
server/core/db.js

@@ -106,8 +106,14 @@ module.exports = {
 
         if (_.isPlainObject(dbConfig)) {
           dbConfig.appName = 'Wiki.js'
+          _.set(dbConfig, 'options.appName', 'Wiki.js')
+
+          dbConfig.enableArithAbort = true
+          _.set(dbConfig, 'options.enableArithAbort', true)
+
           if (dbUseSSL) {
             dbConfig.encrypt = true
+            _.set(dbConfig, 'options.encrypt', true)
           }
         }
         break