Don't run change if not threading.
This commit is contained in:
parent
ae5b963115
commit
01b72b6b71
|
@ -3,6 +3,10 @@ const CouchDB = require("../db")
|
||||||
const { init } = require("@budibase/auth")
|
const { init } = require("@budibase/auth")
|
||||||
|
|
||||||
exports.threadSetup = () => {
|
exports.threadSetup = () => {
|
||||||
|
// don't run this if not threading
|
||||||
|
if (env.isTest() || env.DISABLE_THREADING) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// when thread starts, make sure it is recorded
|
// when thread starts, make sure it is recorded
|
||||||
env.setInThread()
|
env.setInThread()
|
||||||
init(CouchDB)
|
init(CouchDB)
|
||||||
|
|
Loading…
Reference in New Issue