feat: migrate task jobs to workflow notifications + timeline
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
portfolioSummaryQueryOptions,
|
||||
recentTasksQueryOptions,
|
||||
taskQueryOptions,
|
||||
taskTimelineQueryOptions,
|
||||
watchlistQueryOptions
|
||||
} from '@/lib/query/options';
|
||||
|
||||
@@ -69,6 +70,13 @@ export function useTaskQuery(taskId: string, enabled = true) {
|
||||
});
|
||||
}
|
||||
|
||||
export function useTaskTimelineQuery(taskId: string, enabled = true) {
|
||||
return useQuery({
|
||||
...taskTimelineQueryOptions(taskId),
|
||||
enabled: enabled && taskId.length > 0
|
||||
});
|
||||
}
|
||||
|
||||
export function useRecentTasksQuery(limit = 20, enabled = true) {
|
||||
return useQuery({
|
||||
...recentTasksQueryOptions(limit),
|
||||
|
||||
Reference in New Issue
Block a user