Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-05-30 17:57:25 +00:00
parent 517cd3d0ad
commit f1ee80093a

View file

@ -69,6 +69,7 @@ export function useCronjob(id: string | undefined) {
.select("*") .select("*")
.eq("id", id!) .eq("id", id!)
.eq("user_id", user!.id) .eq("user_id", user!.id)
.neq("status", "archived")
.maybeSingle(); .maybeSingle();
if (error) throw error; if (error) throw error;
return data ? normalizeJob(data) : null; return data ? normalizeJob(data) : null;