mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 11:56:45 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
11d8c0c19a
commit
07e70d3142
2 changed files with 6 additions and 14 deletions
|
|
@ -24,11 +24,12 @@ export interface ScheduledJob {
|
|||
updated_at: string;
|
||||
}
|
||||
|
||||
function normalizeJob(row: Record<string, unknown>): ScheduledJob {
|
||||
function normalizeJob(row: unknown): ScheduledJob {
|
||||
const r = row as ScheduledJob & { required_mcp_slugs: unknown };
|
||||
return {
|
||||
...(row as ScheduledJob),
|
||||
required_mcp_slugs: Array.isArray(row.required_mcp_slugs)
|
||||
? (row.required_mcp_slugs as string[])
|
||||
...r,
|
||||
required_mcp_slugs: Array.isArray(r.required_mcp_slugs)
|
||||
? (r.required_mcp_slugs as string[])
|
||||
: [],
|
||||
};
|
||||
}
|
||||
|
|
@ -140,7 +141,7 @@ export function useUpdateCronjobStatus() {
|
|||
const qc = useQueryClient();
|
||||
return useMutation({
|
||||
mutationFn: async ({ id, status }: { id: string; status: "active" | "paused" }) => {
|
||||
const update: Record<string, unknown> = { status };
|
||||
const update: { status: "active" | "paused"; auto_paused_reason?: null } = { status };
|
||||
if (status === "paused") update.auto_paused_reason = null;
|
||||
const { error } = await supabase
|
||||
.from("scheduled_jobs")
|
||||
|
|
|
|||
|
|
@ -496,12 +496,3 @@ const rootRouteChildren: RootRouteChildren = {
|
|||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
|
||||
import type { getRouter } from './router.tsx'
|
||||
import type { createStart } from '@tanstack/react-start'
|
||||
declare module '@tanstack/react-start' {
|
||||
interface Register {
|
||||
ssr: true
|
||||
router: Awaited<ReturnType<typeof getRouter>>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue