feat: getWorkspaces filter site api (#1564)

This commit is contained in:
G r e y
2022-05-19 12:08:55 -04:00
committed by GitHub
parent 0438430c7c
commit 67333b6186
5 changed files with 41 additions and 10 deletions

View File

@ -151,7 +151,7 @@ func (api *api) workspaces(rw http.ResponseWriter, r *http.Request) {
// Empty strings mean no filter
orgFilter := r.URL.Query().Get("organization_id")
ownerFilter := r.URL.Query().Get("owner_id")
ownerFilter := r.URL.Query().Get("owner")
filter := database.GetWorkspacesWithFilterParams{Deleted: false}
if orgFilter != "" {