improvement: all demo bugs fixed. give me more baby.
This commit is contained in:
@@ -2,7 +2,6 @@ import { apiClient } from './client';
|
||||
import type {
|
||||
CasesFilterOptions,
|
||||
LabCaseDetail,
|
||||
LabCaseTask,
|
||||
ListLabCasesParams,
|
||||
PaginatedLabCases,
|
||||
} from '@/types/cases';
|
||||
@@ -25,12 +24,11 @@ export const casesApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
setTaskImportant: async (
|
||||
setCaseImportant: async (
|
||||
caseId: string,
|
||||
taskId: string,
|
||||
isImportant: boolean,
|
||||
): Promise<{ success: boolean; data: LabCaseTask }> => {
|
||||
const response = await apiClient.patch(`/cases/${caseId}/tasks/${taskId}`, { isImportant });
|
||||
): Promise<{ success: boolean; data: LabCaseDetail }> => {
|
||||
const response = await apiClient.patch(`/cases/${caseId}/important`, { isImportant });
|
||||
return response.data;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user