update all page to refresh immidiately without clicking sync button or refreshing the whole page

This commit is contained in:
Alberto-Audrix committed 2026-10-07 11:17:44 +07:00
1 parent d5b0c12c40
commit 83a41fbbcb
15 files changed
+490 -151

No files matched your search

+1
View File
@@ -191,6 +191,7 @@ export const api = {
cycles: {
list: async (query?: CycleFilter) =>
unwrapList(await get<Paginated<Cycle> | Cycle[]>('/cycles/', query)),
retrieve: (id: number) => get<Cycle>(`/cycles/${id}/`),
create: (body: CycleWrite) => post<Cycle>('/cycles/', body),
update: (id: number, body: Partial<CycleWrite>) => patch<Cycle>(`/cycles/${id}/`, body),
remove: (id: number) => del(`/cycles/${id}/`),