Make method transactional

This commit is contained in:
jamesagnew 2020-07-14 19:12:40 -04:00
parent d6f6ec2d66
commit addcdc9269
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
public DeleteMethodOutcome deleteByUrl(String theUrl, DeleteConflictList deleteConflicts, RequestDetails theRequestDetails) { public DeleteMethodOutcome deleteByUrl(String theUrl, DeleteConflictList deleteConflicts, RequestDetails theRequestDetails) {
validateDeleteEnabled(); validateDeleteEnabled();
return doDeleteByUrl(theUrl, deleteConflicts, theRequestDetails); return myTransactionService.execute(theRequestDetails, tx -> doDeleteByUrl(theUrl, deleteConflicts, theRequestDetails));
} }
@Nonnull @Nonnull