mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix rclient check in migration metrics
This commit is contained in:
parent
97cbf46160
commit
8ae95ebf60
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Multi
|
|||
@migrationClient.findQueue @queueKey, (err, rclient) =>
|
||||
return releaseLock(err) if err?
|
||||
# add metric for updates
|
||||
dest = (if rclient == @rclient_new then "new" else "old")
|
||||
dest = (if rclient == @migrationClient.rclient_new then "new" else "old")
|
||||
metrics.count "migration", @updates_count, 1, {status: "#{@migrationClient.migration_phase}-#{dest}"}
|
||||
multi = rclient.multi()
|
||||
for entry in @command_list
|
||||
|
|
Loading…
Reference in a new issue