Skip to content

Commit

Permalink
Merge pull request #188 from ADAPT/develop
Browse files Browse the repository at this point in the history
Merge dev to master for release
  • Loading branch information
Stuart Rhea authored Sep 2, 2022
2 parents 0521c21 + 2dd5ee9 commit 12f72f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ISOv4Plugin/Mappers/Factories/TimeLogMapperFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ namespace AgGateway.ADAPT.ISOv4Plugin.Mappers.Factories
public class TimeLogMapperFactory
{
private readonly TimeLogMapper _timeLogMapper;
private readonly MultiFileTimeLogMapper _multiFileTimeLogMapper;
private readonly TaskDataMapper _taskDataMapper;
private readonly IManufacturer _manufacturer;

Expand Down Expand Up @@ -50,7 +49,6 @@ public TimeLogMapperFactory(TaskDataMapper taskDataMapper)
{
_taskDataMapper = taskDataMapper;
_timeLogMapper = new TimeLogMapper(taskDataMapper);
_multiFileTimeLogMapper = new MultiFileTimeLogMapper(taskDataMapper);

_manufacturer = ManufacturerFactory.GetManufacturer(taskDataMapper);
}
Expand All @@ -63,7 +61,7 @@ public IEnumerable<OperationData> ImportTimeLogs(ISOTask loggedTask, int? prescr
foreach (var timeLogGroup in timeLogGroups)
{
operationDatas.AddRange(timeLogGroup.Count > 1
? _multiFileTimeLogMapper.ImportTimeLogs(loggedTask, timeLogGroup, prescriptionID)
? new MultiFileTimeLogMapper(_taskDataMapper).ImportTimeLogs(loggedTask, timeLogGroup, prescriptionID)
: _timeLogMapper.ImportTimeLogs(loggedTask, timeLogGroup, prescriptionID));
}

Expand Down

0 comments on commit 12f72f9

Please sign in to comment.