@@ -292,14 +292,16 @@ func (api *api) workspaceBuildByName(rw http.ResponseWriter, r *http.Request) {
292
292
293
293
func convertWorkspace (workspace database.Workspace , workspaceBuild codersdk.WorkspaceBuild , template database.Template ) codersdk.Workspace {
294
294
return codersdk.Workspace {
295
- ID : workspace .ID ,
296
- CreatedAt : workspace .CreatedAt ,
297
- UpdatedAt : workspace .UpdatedAt ,
298
- OwnerID : workspace .OwnerID ,
299
- TemplateID : workspace .TemplateID ,
300
- LatestBuild : workspaceBuild ,
301
- TemplateName : template .Name ,
302
- Outdated : workspaceBuild .TemplateVersionID .String () != template .ActiveVersionID .String (),
303
- Name : workspace .Name ,
295
+ ID : workspace .ID ,
296
+ CreatedAt : workspace .CreatedAt ,
297
+ UpdatedAt : workspace .UpdatedAt ,
298
+ OwnerID : workspace .OwnerID ,
299
+ TemplateID : workspace .TemplateID ,
300
+ LatestBuild : workspaceBuild ,
301
+ TemplateName : template .Name ,
302
+ Outdated : workspaceBuild .TemplateVersionID .String () != template .ActiveVersionID .String (),
303
+ Name : workspace .Name ,
304
+ AutostartSchedule : workspace .AutostartSchedule .String ,
305
+ AutostopSchedule : workspace .AutostopSchedule .String ,
304
306
}
305
307
}
0 commit comments