fix: issue display properties endpoint fix

This commit is contained in:
Anmol Singh Bhatia 2023-09-19 15:52:59 +05:30
parent f6b92fc953
commit 8c246042ba

View File

@ -88,7 +88,7 @@ class ProjectIssuesServices extends APIService {
}
async getIssueProperties(workspaceSlug: string, projectId: string): Promise<any> {
return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`)
return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
@ -191,7 +191,7 @@ class ProjectIssuesServices extends APIService {
async createIssueProperties(workspaceSlug: string, projectId: string, data: any): Promise<any> {
return this.post(
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`,
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/`,
data
)
.then((response) => response?.data)
@ -207,7 +207,7 @@ class ProjectIssuesServices extends APIService {
data: any
): Promise<any> {
return this.patch(
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/` +
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/` +
`${issuePropertyId}/`,
data
)