This commit is contained in:
Jimmy Deng 2021-09-22 10:25:57 -04:00
parent c913707599
commit 48f73fa1d1
2 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
throw new MethodNotAllowedException("_expunge is not enabled on this server: " + getConfig().cannotDeleteExpungeReason());
}
if (theUrl.contains(JpaConstants.PARAM_DELETE_CASACADE) || theRequest.getHeader("X-Cascade").equals("delete")) {
if (theUrl.contains(JpaConstants.PARAM_DELETE_CASCADE) || theRequest.getHeader("X-Cascade").equals("delete")) {
throw new NotImplementedOperationException("_expunge cannot be used with _cascade");
}

View File

@ -204,7 +204,7 @@ public class JpaConstants {
* Parameter for delete to indicate the resource should be cascading delete
*/
public static final String PARAM_DELETE_CASACADE = "_cascade";
public static final String PARAM_DELETE_CASCADE = "_cascade";
/**
* URL for extension on a SearchParameter indicating that text values should not be indexed