add filter in export fleets
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
|||||||
groupsstorage "git.coopgo.io/coopgo-platform/groups-management/storage"
|
groupsstorage "git.coopgo.io/coopgo-platform/groups-management/storage"
|
||||||
accounts "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
|
accounts "git.coopgo.io/coopgo-platform/mobility-accounts/grpcapi"
|
||||||
accountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
|
accountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
|
||||||
"git.coopgo.io/coopgo-platform/groups-management/storage"
|
|
||||||
"github.com/xuri/excelize/v2"
|
"github.com/xuri/excelize/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -127,7 +126,7 @@ func (h *ExportsHandler) Bookings(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// filter by group
|
// filter by group
|
||||||
g := r.Context().Value(identification.GroupKey)
|
g := r.Context().Value(identification.GroupKey)
|
||||||
group := g.(storage.Group)
|
group := g.(groupsstorage.Group)
|
||||||
|
|
||||||
if bookedbygroup != group.ID {
|
if bookedbygroup != group.ID {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user