Skip to content

Commit

Permalink
Fix missing map access
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed May 21, 2024
1 parent 6c3d516 commit c83378e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vleserver/plugins/elasticsearch-update.offxqm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
))
};

Expand Down

0 comments on commit c83378e

Please sign in to comment.