@@ -49,7 +49,7 @@ func createObjectID(objectType ObjectType, id string) ObjectID {
49
49
}
50
50
51
51
func searchTemplates (ctx context.Context ,deps Deps ,query string ) ([]SearchResultItem ,error ) {
52
- serverURL := deps .getServerURL ()
52
+ serverURL := deps .ServerURL ()
53
53
templates ,err := deps .coderClient .Templates (ctx , codersdk.TemplateFilter {
54
54
SearchQuery :query ,
55
55
})
@@ -69,7 +69,7 @@ func searchTemplates(ctx context.Context, deps Deps, query string) ([]SearchResu
69
69
}
70
70
71
71
func searchWorkspaces (ctx context.Context ,deps Deps ,query string ) ([]SearchResultItem ,error ) {
72
- serverURL := deps .getServerURL ()
72
+ serverURL := deps .ServerURL ()
73
73
workspaces ,err := deps .coderClient .Workspaces (ctx , codersdk.WorkspaceFilter {
74
74
FilterQuery :query ,
75
75
})
@@ -344,7 +344,7 @@ func fetchWorkspace(ctx context.Context, deps Deps, workspaceID string) (FetchRe
344
344
ID :workspace .ID .String (),
345
345
Title :workspace .Name ,
346
346
Text :string (workspaceJSON ),
347
- URL :fmt .Sprintf ("%s/%s/%s" ,deps .getServerURL (),workspace .OwnerName ,workspace .Name ),
347
+ URL :fmt .Sprintf ("%s/%s/%s" ,deps .ServerURL (),workspace .OwnerName ,workspace .Name ),
348
348
},nil
349
349
}
350
350
@@ -365,7 +365,7 @@ func fetchTemplate(ctx context.Context, deps Deps, templateID string) (FetchResu
365
365
ID :template .ID .String (),
366
366
Title :template .DisplayName ,
367
367
Text :string (templateJSON ),
368
- URL :fmt .Sprintf ("%s/templates/%s/%s" ,deps .getServerURL (),template .OrganizationName ,template .Name ),
368
+ URL :fmt .Sprintf ("%s/templates/%s/%s" ,deps .ServerURL (),template .OrganizationName ,template .Name ),
369
369
},nil
370
370
}
371
371