Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Jan 24, 2025
1 parent 4fba5fe commit 5ba2dc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AquaMai.Mods/Fix/Stability/SanitizeUserData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private static void OnUserFavoriteResponse(ProxyObject request, ProxyObject resp
: null)
.Where(itemIdVariant => itemIdVariant != null)
.ToList();
userFavorite["itemIdList"] = ToProxyArray(validItemIdList);

var filteredOutCount = itemIdList.Count - validItemIdList.Count;
if (filteredOutCount > 0)
Expand Down Expand Up @@ -190,6 +191,7 @@ itemariant is ProxyObject itemObject &&
})
.Select(tuple => tuple.itemObject)
.ToList();
response["userFavoriteItemList"] = ToProxyArray(validItemList);

var filteredOutCount = userFavoriteItemList.Count - validItemList.Count;
if (filteredOutCount > 0)
Expand Down

0 comments on commit 5ba2dc3

Please sign in to comment.