Skip to content

Commit

Permalink
order subscriptions by id
Browse files Browse the repository at this point in the history
  • Loading branch information
rserry committed Jan 25, 2024
1 parent 2cbe075 commit ef3d01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion module/ApiBundle/Controller/BrController.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function getUserIdAction()
*
* URL: vtk.be/api/br/getSubscriptions?key=apiKey&event=eventId&page=pageNumber&length=pageLength
* headers:
* Event: eventId
* Event: eventId (same as event param) (optional)
* Last-ID: lastId (optional)
* query:
* key=apiKey
Expand Down
2 changes: 2 additions & 0 deletions module/BrBundle/Repository/Event/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function findAllByEventQuery(Event $event)
$query->expr()->eq('s.event', ':event')
)
->setParameter('event', $event->getId())
->orderBy('s.id')
->getQuery();
}

Expand All @@ -37,6 +38,7 @@ public function findAllByEventAndStartingIDQuery(Event $event, int $id)
)
->setParameter('event', $event->getId())
->setParameter('id', $id)
->orderBy('s.id')
->getQuery();
}

Expand Down

0 comments on commit ef3d01a

Please sign in to comment.