From c83378ed3cc6d79956c601c3c5bb88685f27adc9 Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Tue, 21 May 2024 14:52:47 +0200 Subject: [PATCH] Fix missing map access --- vleserver/plugins/elasticsearch-update.offxqm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vleserver/plugins/elasticsearch-update.offxqm b/vleserver/plugins/elasticsearch-update.offxqm index 9a637a0..f03f4d6 100644 --- a/vleserver/plugins/elasticsearch-update.offxqm +++ b/vleserver/plugins/elasticsearch-update.offxqm @@ -17,7 +17,7 @@ declare variable $_:log-elasticsearch-results := true(); declare function _:after_created($data as map(xs:string, map(xs:string, map(xs:string, item()?))), $dict as xs:string, $db_name as xs:string, $changingUser as xs:string) as map(*) { api-problem:trace-info('@plugins_elasticsearch-update@after_created', prof:track( - if ($data?current?*?entry instance of element(tei:entry)+) then _:write-log(_:sendToElasticasearch(map:for-each($data?current, function($id, $data) {_:createNDJsonDataHeader($id), _:createNDJsonDataBody($data)}))) else () + if ($data?current?*?entry instance of element(tei:entry)+) then _:write-log(_:sendToElasticasearch(map:for-each($data?current, function($id, $data) {_:createNDJsonDataHeader($id), _:createNDJsonDataBody($data?entry)}))) else () )) };