Remove queue

This commit is contained in:
Michał Zieliński
2025-06-08 11:08:48 +02:00
parent 99d8593c49
commit 4fd0b1cd50
5 changed files with 2 additions and 777 deletions

View File

@@ -69,10 +69,6 @@ builder.Services.AddAuthentication(options =>
};
});
// Queue services
builder.Services.AddScoped<IJobQueueService, JobQueueService>();
builder.Services.AddHostedService<JobQueueProcessor>(); // ✅ GOOD - with proper scope factory
// Google Sheets dependencies
Console.WriteLine("Adding Google Sheets dependencies...");
builder.Services.AddSingleton<GoogleSheetsHelper>();
@@ -142,9 +138,7 @@ app.Use(async (context, next) =>
if (token.Length > 0
&& !context.Request.Path.ToString().Contains("getForPowerBI")
&& !context.Request.Path.ToString().Contains("getConfiguration")
&& !context.Request.Path.ToString().Contains("DataInbox/Add")
&& !context.Request.Path.ToString().Contains("AddPluginName") // TODO: Remove this
&& !context.Request.Path.ToString().Contains("GetImportWorkers"))
&& !context.Request.Path.ToString().Contains("DataInbox/Add"))
{
var handler = new JwtSecurityTokenHandler();
var data = handler.ReadJwtToken(token.Split(' ')[1]);