Update Records model
This commit is contained in:
@@ -192,7 +192,9 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
processWorkerLayers = db.Layers
|
||||
.Include(x => x.Records)
|
||||
.Where(x => x.Records!.Any(x => x.Code == "Type" && x.Desc1 == "ProcessWorker"))
|
||||
.Where(x =>
|
||||
x.Records!.Any(x => x.Code == "Type" && x.Desc1 == "ProcessWorker") &&
|
||||
x.Records!.Any(x => x.Code == "IsEnabled" && x.Desc1 == "True"))
|
||||
.ToList();
|
||||
|
||||
layersToProcess = new List<Layer>();
|
||||
@@ -251,13 +253,12 @@ namespace WebAPI.Controllers
|
||||
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, this);
|
||||
dp.process(sourceLayer, processWorker?.Id);
|
||||
|
||||
//DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
|
||||
//dp.process(sourceLayer, processWorker?.Id);
|
||||
break;
|
||||
}
|
||||
logsController.AddEntry(new LogEntry
|
||||
|
||||
Reference in New Issue
Block a user