From e837b515e425c4cf1b79dba782007f98265a7141 Mon Sep 17 00:00:00 2001 From: Nina Olear Date: Mon, 25 Apr 2022 22:41:27 +0200 Subject: [PATCH] fix: list-capacity --- api/v1/team/team_service.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/v1/team/team_service.go b/api/v1/team/team_service.go index 8444492..0783034 100644 --- a/api/v1/team/team_service.go +++ b/api/v1/team/team_service.go @@ -272,9 +272,7 @@ func (t *TeamService) ListCapacity(w http.ResponseWriter, r *http.Request) { teamOwnerID: team.OwnerID, teamID: request.TeamID, }) - } - - if len(teamsBundle) == 0 { + } else { teams, err := t.store.ListTeams(r.Context()) if err != nil { logger.Error(err)