Browse Source

fix: set enableArithAbort explicit value for tedious driver

pull/2543/head
NGPixel 4 years ago
parent
commit
9762bdc2ce
1 changed files with 6 additions and 0 deletions
  1. 6
      server/core/db.js

6
server/core/db.js

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

Loading…
Cancel
Save