Merge pull request #10495 from Budibase/fix/custom-locks

Fix usage of custom locks
This commit is contained in:
Rory Powell 2023-05-05 15:21:58 +01:00 committed by GitHub
commit 595db7d346
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export const doWithLock = async <T>(
opts: LockOptions, opts: LockOptions,
task: () => Promise<T> task: () => Promise<T>
): Promise<RedlockExecution<T>> => { ): Promise<RedlockExecution<T>> => {
const redlock = await getClient(opts.type) const redlock = await getClient(opts.type, opts.customOptions)
let lock let lock
try { try {
// determine lock name // determine lock name