From d8d51b456050a060dd0ecc4ad9e1563fa2516ff2 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Wed, 14 Feb 2024 21:05:07 -0500 Subject: [PATCH] fix: idk why this was here --- .../Controllers/SellerProfileController.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/comissions.app.api/Controllers/SellerProfileController.cs b/src/comissions.app.api/Controllers/SellerProfileController.cs index 7359fae..8942ad2 100644 --- a/src/comissions.app.api/Controllers/SellerProfileController.cs +++ b/src/comissions.app.api/Controllers/SellerProfileController.cs @@ -223,14 +223,7 @@ public class SellerProfileController : Controller if(existingSellerProfile.Suspended) return BadRequest(); - if(existingSellerProfile.StripeAccountId!=null) - return BadRequest(); - - var accountId = _paymentService.CreateSellerAccount(); - existingSellerProfile.StripeAccountId = accountId; - existingSellerProfile = _dbContext.UserSellerProfiles.Update(existingSellerProfile).Entity; - await _dbContext.SaveChangesAsync(); - var result = _paymentService.SellerAccountIsOnboarded(accountId); + var result = _paymentService.SellerAccountIsOnboarded(existingSellerProfile.StripeAccountId); return Ok(new SellerOnboardStatusModel(){ Onboarded= result }); }