feat: show dormant workspaces by default (#11053)

This commit is contained in:
Jon Ayers
2023-12-07 18:09:35 -06:00
committed by GitHub
parent be31b2e4d7
commit e73a202aed
15 changed files with 196 additions and 183 deletions
+1 -6
View File
@@ -7289,12 +7289,7 @@ func (q *FakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
}
}
// We omit locked workspaces by default.
if arg.IsDormant == "" && workspace.DormantAt.Valid {
continue
}
if arg.IsDormant != "" && !workspace.DormantAt.Valid {
if arg.Dormant && !workspace.DormantAt.Valid {
continue
}