We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e45bb commit 0120c5bCopy full SHA for 0120c5b
coderd/workspaces.go
@@ -2232,11 +2232,6 @@ func convertWorkspace(
2232
appStatus = nil
2233
}
2234
2235
- isPrebuild := false
2236
- if workspace.OwnerID == database.PrebuildsSystemUserID {
2237
- isPrebuild = true
2238
- }
2239
-
2240
return codersdk.Workspace{
2241
ID: workspace.ID,
2242
CreatedAt: workspace.CreatedAt,
@@ -2271,7 +2266,7 @@ func convertWorkspace(
2271
2266
AllowRenames: allowRenames,
2272
2267
Favorite: requesterFavorite,
2273
2268
NextStartAt: nextStartAt,
2274
- IsPrebuild: isPrebuild,
2269
+ IsPrebuild: workspace.IsPrebuild(),
2275
2270
}, nil
2276
2277
0 commit comments