Skip to content

Commit ee44145

Browse files
committed
match query
1 parent 8ec3904 commit ee44145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbmem/dbmem.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ func (q *FakeQuerier) DeleteOldWorkspaceAgentStats(_ context.Context) error {
15751575

15761576
func (q *FakeQuerier) DeleteOrganization(_ context.Context, id uuid.UUID) error {
15771577
for i, org := range q.organizations {
1578-
if org.ID == id {
1578+
if org.ID == id && !org.IsDefault {
15791579
q.organizations = append(q.organizations[:i], q.organizations[i+1:]...)
15801580
return nil
15811581
}

0 commit comments

Comments
 (0)