Skip to content

Commit

Permalink
fixing issue where redLock expects array and we pass string
Browse files Browse the repository at this point in the history
  • Loading branch information
MShel committed Oct 17, 2023
1 parent fe0b735 commit 3b31dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = ({ strapi }) => {

let lock
try {
lock = await redlock.acquire(name, config.lockTTL)
lock = await redlock.acquire([name], config.lockTTL)
debug(`Job ${name} acquired lock`)
await originalFunction(...args)
} catch (e) {
Expand Down

0 comments on commit 3b31dee

Please sign in to comment.