Skip to content

Commit

Permalink
RA-1554: Fix OrderFrequency metadata deploy when in use by DrugOrder (#6
Browse files Browse the repository at this point in the history
)

* RA-1554: Fix OrderFrequency metadata deploy when in use by DrugOrder

* RA-1554: Removing formating
  • Loading branch information
edrisse authored and dkayiwa committed Nov 28, 2018
1 parent ccb8d16 commit 43f61e9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ public OrderFrequency fetch(String uuid) {

@Override
public OrderFrequency save(OrderFrequency obj) {
return orderService.saveOrderFrequency(obj);
OrderFrequency existing = fetch(obj.getUuid());
if (existing == null) {
return orderService.saveOrderFrequency(obj);
}
return obj;
}

@Override
Expand Down

0 comments on commit 43f61e9

Please sign in to comment.