mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
fix
This commit is contained in:
parent
a70761d0e7
commit
c9e3c44353
|
@ -1,5 +1,6 @@
|
|||
import { api } from 'boot/axios';
|
||||
import { ChildDetailsResponse } from 'src/models/child';
|
||||
import { HistoryListResponse } from 'src/models/history';
|
||||
import { TaskListResponse } from 'src/models/task';
|
||||
import useStore from 'src/store';
|
||||
|
||||
|
@ -49,7 +50,7 @@ export const completeTask = async (taskId: string, childId: string): Promise<voi
|
|||
}
|
||||
}
|
||||
|
||||
export const getHistory = async (childId: string, containPaid?: boolean): Promise<TaskListResponse> => {
|
||||
export const getHistory = async (childId: string, containPaid?: boolean): Promise<HistoryListResponse> => {
|
||||
if (containPaid !== undefined) {
|
||||
const response = await api.get(`/task/history/${childId}`, { params: { containPaid } });
|
||||
if (response.status !== 200) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user