WIP: refactor

This commit is contained in:
Michał Zieliski
2024-06-18 19:53:52 +02:00
parent a0a228f86d
commit 7e8406dc9b
10 changed files with 245 additions and 255 deletions

View File

@@ -16,12 +16,12 @@ public class AdminController : Controller
public AdminController(
GoogleDriveHelper googleDriveHelper,
IConfiguration configuration,
LogsController logsController)
GoogleSheetsHelper googleSheetsHelper,
IConfiguration configuration)
{
_googleDriveHelper = googleDriveHelper;
_configuration = configuration;
_logsController = logsController;
_logsController = new LogsController(googleSheetsHelper, _configuration);
}
[HttpGet]

View File

@@ -493,7 +493,7 @@ public class LayersController : Controller
case "T1-R1":
{
var processor = new T1R1Processor(_db, _googleSheetValues, this, _logsController);
processor.process(processWorker);
processor.Process(processWorker);
_logsController.AddEntry(new LogEntry
{
@@ -553,7 +553,7 @@ public class LayersController : Controller
{
var t3MultiSourceCopySelectedCode =
new T3MultiSourceCopySelectedCodesProcessor(_db, _googleSheetValues, this);
t3MultiSourceCopySelectedCode.process(processWorker);
t3MultiSourceCopySelectedCode.Process(processWorker);
break;
}
}