fix: new project issues response (#303)
This commit is contained in:
parent
393638c700
commit
77c319c748
21 changed files with 105 additions and 141 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// services
|
||||
import APIService from "services/api.service";
|
||||
// type
|
||||
import type { IIssue, IIssueActivity, IIssueComment, IssueResponse } from "types";
|
||||
import type { IIssue, IIssueActivity, IIssueComment } from "types";
|
||||
|
||||
const { NEXT_PUBLIC_API_BASE_URL } = process.env;
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ class ProjectIssuesServices extends APIService {
|
|||
});
|
||||
}
|
||||
|
||||
async getIssues(workspaceSlug: string, projectId: string): Promise<IssueResponse> {
|
||||
async getIssues(workspaceSlug: string, projectId: string): Promise<IIssue[]> {
|
||||
return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/`)
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue