add filter in export fleets

This commit is contained in:
Nicolas CARON 2023-06-02 14:43:56 +02:00
parent b717be9b99
commit 18e890ceed
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ import (
groupsstorage "git.coopgo.io/coopgo-platform/groups-management/storage"
accounts "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
accountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
"git.coopgo.io/coopgo-platform/groups-management/storage"
"github.com/xuri/excelize/v2"
)
@ -127,7 +126,7 @@ func (h *ExportsHandler) Bookings(w http.ResponseWriter, r *http.Request) {
// filter by group
g := r.Context().Value(identification.GroupKey)
group := g.(storage.Group)
group := g.(groupsstorage.Group)
if bookedbygroup != group.ID {
continue