improvement: all demo bugs fixed. give me more baby.

This commit is contained in:
2026-07-08 02:53:47 +03:30
parent 86b1e3afff
commit 8d334833ff
23 changed files with 876 additions and 626 deletions

View File

@@ -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;
},