Skip to content

Commit

Permalink
kiosk: events: pass filter for counting
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Oct 11, 2021
1 parent d747c87 commit cd37fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiosk/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (k *Kiosk) eventsHandler(c *gin.Context) {
logrus.WithError(err).Warnln("Unable to select events")
c.JSON(http.StatusInternalServerError, []_event.Event{})
} else {
cnt, err := k.mold.Count()
cnt, err := k.mold.Count(filter)
if err != nil {
logrus.WithError(err).Errorln("Unable to count DB entries")
}
Expand Down

0 comments on commit cd37fd5

Please sign in to comment.