Another processing fix

This commit is contained in:
Michał Zieliński
2023-10-13 12:41:04 +02:00
parent 759f55cc2f
commit eba4d2efc0
3 changed files with 14 additions and 6 deletions

View File

@@ -252,13 +252,21 @@ namespace WebAPI.Controllers
{
case "Copy":
CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
cp.process(sourceLayer, processWorker?.Id);
cp.process(sourceLayer, processWorker?.Id);
break;
case "Deaggregation":
DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
dp.process(sourceLayer, processWorker?.Id);
break;
}
}
logsController.AddEntry(new LogEntry
{
Title = $"Process Success, {sourceLayer.Name}",
Type = LogEntryType.info,
LogType = LogType.process,
CreatedAt = DateTime.UtcNow
});
}
}
}