Skip to content

Commit

Permalink
hotfix: fix api params
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 18, 2021
1 parent 2dd62d6 commit 0edc30d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/models/dto/study.dto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface CreateStudyDto {
images: string[];
give: string[];
take: string[];
point: number;
}

export interface StudyListElement {
Expand Down
1 change: 1 addition & 0 deletions src/pages/study/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function CreateStudyPage() {
images: [],
give: [],
take: [],
point: 0,
},
onSubmit(v: CreateStudyDto) {
studyStore
Expand Down
5 changes: 4 additions & 1 deletion src/services/Category.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default class CategoryService extends BaseHttpService {
prefix = "/category";

async getCategoryList() {
return (await this.get<Category[]>(this.prefix, {})) as Category[];
return (await this.get<Category[]>(
`${this.prefix}?point=false`,
{},
)) as Category[];
}
}

0 comments on commit 0edc30d

Please sign in to comment.