@@ -4079,19 +4079,19 @@ func TestSubscriptionEnrichmentFields_RoundTrip(t *testing.T) {
40794079}
40804080
40814081func TestSubscriptionBaseMetadata_RoundTrip (t * testing.T ) {
4082- favoritedAt := time .Date (2026 , 2 , 1 , 9 , 0 , 0 , 0 , time .UTC )
4082+ favoriteUpdatedAt := time .Date (2026 , 2 , 1 , 9 , 0 , 0 , 0 , time .UTC )
40834083 updatedAt := time .Date (2026 , 3 , 2 , 10 , 0 , 0 , 0 , time .UTC )
40844084 src := model.Subscription {
4085- ID : "s1" ,
4086- User : model.SubscriptionUser {ID : "u1" , Account : "alice" },
4087- RoomID : "r1" ,
4088- SiteID : "site-a" ,
4089- Roles : []model.Role {model .RoleMember },
4090- RoomType : model .RoomTypeChannel ,
4091- JoinedAt : time .Date (2026 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
4092- HasUnread : true ,
4093- FavoritedAt : & favoritedAt ,
4094- UpdatedAt : & updatedAt ,
4085+ ID : "s1" ,
4086+ User : model.SubscriptionUser {ID : "u1" , Account : "alice" },
4087+ RoomID : "r1" ,
4088+ SiteID : "site-a" ,
4089+ Roles : []model.Role {model .RoleMember },
4090+ RoomType : model .RoomTypeChannel ,
4091+ JoinedAt : time .Date (2026 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
4092+ HasUnread : true ,
4093+ FavoriteUpdatedAt : & favoriteUpdatedAt ,
4094+ UpdatedAt : & updatedAt ,
40954095 }
40964096 dst := model.Subscription {}
40974097 roundTrip (t , & src , & dst )
@@ -4107,7 +4107,7 @@ func TestSubscriptionBaseMetadata_RoundTrip(t *testing.T) {
41074107 zb , err := json .Marshal (& model.Subscription {ID : "z" , JoinedAt : time .Now ().UTC ()})
41084108 require .NoError (t , err )
41094109 require .NoError (t , json .Unmarshal (zb , & zero ))
4110- for _ , k := range []string {"favoritedAt " , "updatedAt" } {
4110+ for _ , k := range []string {"favoriteUpdatedAt " , "updatedAt" } {
41114111 _ , present := zero [k ]
41124112 assert .False (t , present , "%q must be omitted when unset" , k )
41134113 }
0 commit comments