1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Fix wrong commited code

This commit is contained in:
Adria Navarro 2023-11-30 18:23:35 +01:00
parent a8ac4eed6d
commit bd89633e61

View file

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