feat(product, pricing, utils): Transaction issues and reference issues (#5533)
* feat(product, pricing, utils): Transaction issues and reference issues * fixes decorators * cleanup * fix product module upsert * fix missing active manager * increase timeout * revert package.json * WIP * try another node version based on findings with memory issues with jest introduced after 16.11 but fixed in 21 * re add bail * fix variant options * chore: bulk create pricing * chore: workflow bulk * Create big-chefs-dream.md * fix missing update for upserty * Add integration tests for product options upsert * rm unnecessary return * fix product prices workflow issue * cleanup * fix flag * fix model --------- Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com> Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com> Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
This commit is contained in:
committed by
GitHub
parent
57c3a24ad3
commit
f88d75b0a7
@@ -28,9 +28,12 @@ export async function transactionWrapper<TManager = unknown>(
|
||||
Object.assign(options, { isolationLevel })
|
||||
}
|
||||
|
||||
const freshManager = this.getFreshManager
|
||||
? this.getFreshManager()
|
||||
: this.manager_
|
||||
const transactionMethod =
|
||||
this.manager_.transaction ?? this.manager_.transactional
|
||||
return await transactionMethod.bind(this.manager_)(task, options)
|
||||
freshManager.transaction ?? freshManager.transactional
|
||||
return await transactionMethod.bind(freshManager)(task, options)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user