chore: remove dependency on async local storage
This commit is contained in:
parent
d452aac0f9
commit
ec30811de1
14 changed files with 109 additions and 296 deletions
|
|
@ -2,7 +2,6 @@ const crypto = require('crypto')
|
|||
|
||||
const _ = require('lodash/fp')
|
||||
const db = require('./db')
|
||||
const { asyncLocalStorage } = require('./async-storage')
|
||||
const { getOperatorId } = require('./operator')
|
||||
const { getTermsConditions, setTermsConditions } = require('./new-config-manager')
|
||||
|
||||
|
|
@ -57,7 +56,7 @@ const addTermsHash = configs => {
|
|||
const notifyReload = (dbOrTx, operatorId) =>
|
||||
dbOrTx.none(
|
||||
'NOTIFY $1:name, $2',
|
||||
['reload', JSON.stringify({ schema: asyncLocalStorage.getStore().get('schema'), operatorId })]
|
||||
['reload', JSON.stringify({ operatorId })]
|
||||
)
|
||||
|
||||
function saveAccounts (accounts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue