Update the AcceptDonation flag correctly when adding or removing the stripe account

This commit is contained in:
2025-02-13 15:51:38 -05:00
parent 11284e3c38
commit a50113c7df

View File

@@ -28,7 +28,7 @@ public class StripeAccountConfiguredHandler(
return;
}
creator.AcceptDonation = true;
creator.AcceptDonation = !string.IsNullOrWhiteSpace(eventModel.StripeAccountId);
var rows = await dbContext.SaveChangesAsync(ct);