1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Don't run change if not threading.

This commit is contained in:
mike12345567 2021-12-15 12:26:29 +00:00
parent ae5b963115
commit 01b72b6b71

View file

@ -3,6 +3,10 @@ const CouchDB = require("../db")
const { init } = require("@budibase/auth")
exports.threadSetup = () => {
// don't run this if not threading
if (env.isTest() || env.DISABLE_THREADING) {
return
}
// when thread starts, make sure it is recorded
env.setInThread()
init(CouchDB)