Fix wrong commited code

This commit is contained in:
Adria Navarro 2023-11-30 18:23:35 +01:00
parent a8ac4eed6d
commit bd89633e61
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ const OPTIONS: Record<keyof typeof LockType, Redlock.Options> = {
}
export async function newRedlock(opts: Redlock.Options = {}) {
let options = { ...OPTIONS, ...opts }
const options = { ...OPTIONS.DEFAULT, ...opts }
const redisWrapper = await getLockClient()
const client = redisWrapper.getClient()
return new Redlock([client], options)