processedLayer - save fix

This commit is contained in:
Michał Zieliński
2023-10-07 14:53:27 +02:00
parent ac7b01482e
commit 23ef41089f
2 changed files with 44 additions and 25 deletions

View File

@@ -248,16 +248,15 @@ namespace WebAPI.Controllers
return BadRequest();
} else
{
Layer? processedLayer = null;
switch (processType)
{
case "Copy":
CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
cp.process(sourceLayer, processWorker?.Id);
//CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
//cp.process(sourceLayer, processWorker?.Id);
break;
case "Deaggregation":
DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues);
processedLayer = dp.process(sourceLayer, processWorker?.Id);
DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
dp.process(sourceLayer, processWorker?.Id);
break;
}
}