Skip to content

Commit

Permalink
Fix ser/de of user in user_index (#5980)
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan authored Jul 3, 2024
1 parent 740e96d commit 4435db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/canisters/user_index/impl/src/model/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ pub struct User {
pub chit_balance_v2: i32,
#[serde(rename = "st", alias = "streak", default, skip_serializing_if = "is_default")]
pub streak: Streak,
#[serde(rename = "s2", alias = "streak_v2", default, skip_serializing_if = "is_default")]
#[serde(rename = "s", alias = "streak_v2", default, skip_serializing_if = "is_default")]
pub streak_v2: u16,
#[serde(rename = "s2", alias = "streak_ends", default, skip_serializing_if = "is_default")]
#[serde(rename = "se", alias = "streak_ends", default, skip_serializing_if = "is_default")]
pub streak_ends: TimestampMillis,
#[serde(rename = "dv", alias = "date_updated_volatile", default)]
pub date_updated_volatile: TimestampMillis,
Expand Down

0 comments on commit 4435db1

Please sign in to comment.