Skip to content

Commit

Permalink
fix: dual update_user calling add_user
Browse files Browse the repository at this point in the history
Issue: SYNC-4121
  • Loading branch information
pjenvey committed Feb 15, 2024
1 parent e043fb0 commit c80866d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopush-common/src/db/dual/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl DbClient for DualClientImpl {
let (target, is_primary) = self.allot(&user.uaid).await?;
let result = target.update_user(user).await?;
if is_primary && self.write_to_secondary {
let _ = self.secondary.add_user(user).await.map_err(|e| {
let _ = self.secondary.update_user(user).await.map_err(|e| {
error!("⚡ Error: {:?}", e);
self.metrics
.incr_with_tags("database.dual.error")
Expand Down

0 comments on commit c80866d

Please sign in to comment.