Skip to content

Commit

Permalink
Handle calls to app:entries without start param
Browse files Browse the repository at this point in the history
  • Loading branch information
joewiz committed Jan 25, 2022
1 parent 640ac8d commit 6a6fd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/xar-resources/modules/app.xql
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ declare function app:get-or-create-feed($node as node(), $model as map(*), $crea
declare
%templates:wrap
%templates:default("start", 1)
function app:entries($node as node(), $model as map(*), $count as xs:string?, $id as xs:string?, $wiki-id as xs:string?,
$start as xs:int) {
function app:entries($node as node(), $model as map(*), $count as xs:string?, $id as xs:string?, $wiki-id as xs:string?, $start as xs:int?) {
let $start := ($start, 0)[1]
let $feed := $model("feed")
let $allEntries := config:get-entries($feed, $id, $wiki-id)
return
Expand Down

0 comments on commit 6a6fd29

Please sign in to comment.