From 25f686eccdecc2397dfb393dab7998aa4aa3f679 Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Mon, 8 Sep 2025 22:13:33 -0300 Subject: [PATCH] fix: update currentplan --- src/BCards.Web/Controllers/StripeWebhookController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BCards.Web/Controllers/StripeWebhookController.cs b/src/BCards.Web/Controllers/StripeWebhookController.cs index 624ced2..5bf0563 100644 --- a/src/BCards.Web/Controllers/StripeWebhookController.cs +++ b/src/BCards.Web/Controllers/StripeWebhookController.cs @@ -448,8 +448,8 @@ public class StripeWebhookController : ControllerBase user.CurrentPlan = planType; user.UpdatedAt = DateTime.UtcNow; - var usersCollection = mongoDatabase.GetCollection("users"); - await usersCollection.ReplaceOneAsync(u => u.Id == user.Id, user); + var usersCollection2 = mongoDatabase.GetCollection("users"); + await usersCollection2.ReplaceOneAsync(u => u.Id == user.Id, user); _logger.LogInformation($"[TID: {traceId}] - User {user.Id} CurrentPlan updated to '{planType}'"); // Activate user pages that were pending payment or expired