Skip to content

Commit

Permalink
set revisable to true (#881)
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
divyamadala30 authored Feb 16, 2023
1 parent 6d5e90a commit fb717b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,10 @@ void createSampleRequestRelationship(@Param("smileSampleId") UUID smileSampleId,
+ "WHERE ID(sm) = $smId "
+ "RETURN st")
Status findStatusForSampleMetadataById(@Param("smId") Long smId);

@Query("MATCH (s: Sample {smileSampleId: $smileSampleId}) "
+ "SET s.revisable = $revisable "
+ "RETURN s")
SmileSample updateRevisableBySampleId(@Param("smileSampleId") UUID smileSampleId,
@Param("revisable") Boolean revisable);
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public SmileSample saveSmileSample(SmileSample
existingSample.getPatient().getSmilePatientId());
existingSample.setPatient(sample.getPatient());
}

sampleRepository.updateRevisableBySampleId(existingSample.getSmileSampleId(), Boolean.TRUE);
sampleRepository.save(existingSample);
return existingSample;
}
Expand Down

0 comments on commit fb717b5

Please sign in to comment.