refactor: templates api logic

This commit is contained in:
2024-11-29 23:52:19 +00:00
parent db03db3b83
commit ae8f62d77d
10 changed files with 561 additions and 428 deletions

View File

@@ -131,7 +131,7 @@ func (mgr workspaceManager) createWorkspace(ctx context.Context, opts createWork
return nil, err
}
var img template.TemplateImage
var img template.Image
err = tx.NewSelect().Model(&img).
Where("image_id = ?", opts.imageID).
Scan(ctx)