Update the AcceptDonation flag correctly when adding or removing the stripe account
This commit is contained in:
@@ -28,7 +28,7 @@ public class StripeAccountConfiguredHandler(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
creator.AcceptDonation = true;
|
creator.AcceptDonation = !string.IsNullOrWhiteSpace(eventModel.StripeAccountId);
|
||||||
|
|
||||||
var rows = await dbContext.SaveChangesAsync(ct);
|
var rows = await dbContext.SaveChangesAsync(ct);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user