🐛 Fix Sphere Rewind

This commit is contained in:
2025-12-27 20:49:33 +08:00
parent 07445ebc25
commit 2bffbf18a3
5 changed files with 10 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ public class BroadcastEventHandler(
AccountId = evt.AccountId,
Status = status,
UpdatedAt = SystemClock.Instance.GetCurrentInstant()
}, GrpcTypeHelper.SerializerOptionsWithIgnore)).ToByteArray()
}, GrpcTypeHelper.SerializerOptionsWithoutIgnore)).ToByteArray()
);
logger.LogInformation("Broadcasted status update for user {AccountId}", evt.AccountId);
@@ -214,7 +214,7 @@ public class BroadcastEventHandler(
AccountId = evt.AccountId,
Status = status,
UpdatedAt = SystemClock.Instance.GetCurrentInstant()
}, GrpcTypeHelper.SerializerOptionsWithIgnore)).ToByteArray()
}, GrpcTypeHelper.SerializerOptionsWithoutIgnore)).ToByteArray()
);
logger.LogInformation("Broadcasted status update for user {AccountId}", evt.AccountId);

View File

@@ -727,13 +727,13 @@ public class SubscriptionService(
}
// Update gift status and link
gift.Status = DysonNetwork.Shared.Models.GiftStatus.Redeemed;
gift.Status = Shared.Models.GiftStatus.Redeemed;
gift.RedeemedAt = now;
gift.RedeemerId = redeemer.Id;
gift.SubscriptionId = sameTypeSubscription.Id;
gift.UpdatedAt = now;
using var transaction = await db.Database.BeginTransactionAsync();
await using var transaction = await db.Database.BeginTransactionAsync();
try
{
db.WalletSubscriptions.Update(sameTypeSubscription);