🐛 Fix Sphere Rewind
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user