Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 041ef2c

Browse files
authored
Merge pull request #108 from kghmanuel/79-processsubscription-svc-extime
REST PUT processsubscription taking forever and timing out
2 parents 4c807a3 + cd70f11 commit 041ef2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/models/lib-search-subscribe.xqy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ declare function ss:do-create-action($alert-name as xs:string,$alert-module as x
314314

315315
declare function ss:check-remove-config($shortname as xs:string) {
316316
let $alert-name := "/config/alerts/" || $shortname
317-
let $config := alert:config-get($alert-name)
317+
let $config := xdmp:invoke-function(
318+
function() { alert:config-get($alert-name) }
319+
, <options xmlns="xdmp:eval"><isolation>different-transaction</isolation></options>
320+
)
318321
return
319322
if (fn:not(fn:empty($config))) then
320323
(: Check if config used in a cpf domain, if so remove it from that domain :)

0 commit comments

Comments
 (0)