Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sergionoviello committed Jun 5, 2024
1 parent a5bbf97 commit 73c9395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ Persistence.applyPolicy = function (multi, key, policy) {

Persistence.readOrderedWithScores = function (key, policy, callback) {
const multi = Persistence.redis().multi()
let multiReplica = null

if (process.env.RADAR_MIGRATION_ENABLED === 'true') {
const multiReplica = Persistence.redisReplica().multi()
multiReplica = Persistence.redisReplica().multi()
}

let replyCount = 0
Expand Down

0 comments on commit 73c9395

Please sign in to comment.