Remove stripe-id from identity db

This commit is contained in:
2025-02-08 21:34:26 -05:00
parent a2e564087b
commit 69f2759af5
2 changed files with 1 additions and 9 deletions

View File

@@ -29,12 +29,6 @@ public class GetCurrentUserQueryHandler(
var roles = await identityService.GetCurrentUserRolesAsync(); var roles = await identityService.GetCurrentUserRolesAsync();
var stripeId = await membershipDbContext
.Creators
.Where(c => c.Id == userModel.Id)
.Select(c => c.StripeAccountId)
.FirstOrDefaultAsync(cancellationToken);
await SendOkAsync( await SendOkAsync(
new UserDto new UserDto
{ {
@@ -48,8 +42,7 @@ public class GetCurrentUserQueryHandler(
Email = userModel.Email, Email = userModel.Email,
BirthDate = userModel.BirthDate, BirthDate = userModel.BirthDate,
Address = userModel.Address, Address = userModel.Address,
UserRoles = roles, UserRoles = roles
StripeId = stripeId ?? string.Empty
}, },
cancellationToken); cancellationToken);
} }

View File

@@ -13,5 +13,4 @@ public class UserDto
public string? PhoneNumber { get; init; } public string? PhoneNumber { get; init; }
public DateTime? BirthDate { get; init; } public DateTime? BirthDate { get; init; }
public string? Address { get; init; } public string? Address { get; init; }
public string? StripeId { get; init; }
} }