refactor(projects): rename workspace to project

This commit is contained in:
Mahyar Mirrashed
2025-03-13 11:41:02 -07:00
parent aecfa268ae
commit 0b55ac141c

View File

@@ -5,12 +5,12 @@ import (
"github.com/go-resty/resty/v2"
)
func GetProjectDetails(accessToken string, workspaceId string) (api.Project, error) {
func GetProjectDetails(accessToken string, projectId string) (api.Project, error) {
httpClient := resty.New()
httpClient.SetAuthToken(accessToken).
SetHeader("Accept", "application/json")
res, err := api.CallGetProjectById(httpClient, workspaceId)
res, err := api.CallGetProjectById(httpClient, projectId)
if err != nil {
return api.Project{}, err
}