mirror of https://github.com/Budibase/budibase.git
committed by
GitHub
3 changed files with 15 additions and 5 deletions
@ -0,0 +1,13 @@ |
|||||
|
const env = require("../environment") |
||||
|
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) |
||||
|
} |
||||
Loading…
Reference in new issue