Skip to content
Snippets Groups Projects
Commit 107142bd authored by tranoris's avatar tranoris
Browse files

fix for #62

parent 92e6aa4c
No related branches found
No related tags found
1 merge request!59MR for Release 2024Q4
Pipeline #11046 passed
...@@ -289,9 +289,10 @@ public class MeasurementCollectionJobService { ...@@ -289,9 +289,10 @@ public class MeasurementCollectionJobService {
MeasurementCollectionJobMapper mapper = Mappers.getMapper(MeasurementCollectionJobMapper.class); MeasurementCollectionJobMapper mapper = Mappers.getMapper(MeasurementCollectionJobMapper.class);
MeasurementCollectionJob mcj = mapper.createMeasurementCollectionJob(measurementCollectionJobFVO); MeasurementCollectionJob mcj = mapper.createMeasurementCollectionJob(measurementCollectionJobFVO);
mcj = this.measurementCollectionJobRepository.save(mcj);
raiseMCJCreateNotification(mcj); raiseMCJCreateNotification(mcj);
return this.measurementCollectionJobRepository.save(mcj); return mcj;
} }
public MeasurementCollectionJob updateMeasurementCollectionJob(String uuid, @Valid MeasurementCollectionJobMVO measurementCollectionJobUpdate){ public MeasurementCollectionJob updateMeasurementCollectionJob(String uuid, @Valid MeasurementCollectionJobMVO measurementCollectionJobUpdate){
...@@ -306,7 +307,7 @@ public class MeasurementCollectionJobService { ...@@ -306,7 +307,7 @@ public class MeasurementCollectionJobService {
MeasurementCollectionJobMapper mapper = Mappers.getMapper(MeasurementCollectionJobMapper.class); MeasurementCollectionJobMapper mapper = Mappers.getMapper(MeasurementCollectionJobMapper.class);
measurementCollectionJob = mapper.updateMeasurementCollectionJob(measurementCollectionJobUpdate, measurementCollectionJob); measurementCollectionJob = mapper.updateMeasurementCollectionJob(measurementCollectionJobUpdate, measurementCollectionJob);
this.measurementCollectionJobRepository.save(measurementCollectionJob); measurementCollectionJob = this.measurementCollectionJobRepository.save(measurementCollectionJob);
// This may be unnecessary since MeasurementCollectionJobMVO doesn't have the executionState attribute // This may be unnecessary since MeasurementCollectionJobMVO doesn't have the executionState attribute
executionStateChanged = !originalExecutionState.equals(measurementCollectionJob.getExecutionState()); executionStateChanged = !originalExecutionState.equals(measurementCollectionJob.getExecutionState());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment