From caeac04d0d7b0b7d6eee4456712e94aa680b81b4 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 9 Sep 2025 15:29:26 +0530 Subject: [PATCH] Added the logic to bypass the seat check condition --- Marco.Pms.Services/Helpers/GeneralHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marco.Pms.Services/Helpers/GeneralHelper.cs b/Marco.Pms.Services/Helpers/GeneralHelper.cs index 45cdb13..289c87e 100644 --- a/Marco.Pms.Services/Helpers/GeneralHelper.cs +++ b/Marco.Pms.Services/Helpers/GeneralHelper.cs @@ -13,6 +13,7 @@ namespace Marco.Pms.Services.Helpers private readonly ApplicationDbContext _context; // Keeping this for direct scoped context use where appropriate private readonly ILoggingService _logger; private readonly FeatureDetailsHelper _featureDetailsHelper; + private static readonly Guid SuperTenantId = Guid.Parse("b3466e83-7e11-464c-b93a-daf047838b26"); public GeneralHelper(IDbContextFactory dbContextFactory, ApplicationDbContext context, ILoggingService logger, @@ -307,6 +308,10 @@ namespace Marco.Pms.Services.Helpers try { + if (tenantId == SuperTenantId) + { + return true; + } // Run both queries concurrently var totalSeatsTask = GetMaxSeatsAsync(tenantId); var totalSeatsTakenTask = GetActiveEmployeesCountAsync(tenantId);