fix: add journal_retention_days and maturity_threshold_pct to useUpdateCycleConfig type
This commit is contained in:
@@ -322,7 +322,7 @@ export const useCycleHistory = (limit = 20) =>
|
|||||||
export const useUpdateCycleConfig = () => {
|
export const useUpdateCycleConfig = () => {
|
||||||
const qc = useQueryClient()
|
const qc = useQueryClient()
|
||||||
return useMutation({
|
return useMutation({
|
||||||
mutationFn: (cfg: { enabled?: boolean; interval_hours?: number; similarity_threshold?: number; min_ev_threshold?: number; min_score_threshold?: number }) =>
|
mutationFn: (cfg: { enabled?: boolean; interval_hours?: number; similarity_threshold?: number; min_ev_threshold?: number; min_score_threshold?: number; journal_retention_days?: number; maturity_threshold_pct?: number }) =>
|
||||||
api.post('/cycle/config', cfg).then(r => r.data),
|
api.post('/cycle/config', cfg).then(r => r.data),
|
||||||
onSuccess: () => qc.invalidateQueries({ queryKey: ['cycle-status'] }),
|
onSuccess: () => qc.invalidateQueries({ queryKey: ['cycle-status'] }),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user