From 940df6a77cade334217af2ef598ba2cf965c8574 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 9 Jul 2026 19:23:44 +0000 Subject: [PATCH] Remove redundant built-in routine lookups Co-Authored-By: Paperclip --- server/src/routes/built-in-agents.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/routes/built-in-agents.ts b/server/src/routes/built-in-agents.ts index f8b7ebecb55..9c16ba6f53b 100644 --- a/server/src/routes/built-in-agents.ts +++ b/server/src/routes/built-in-agents.ts @@ -237,7 +237,6 @@ export function builtInAgentRoutes(db: Db) { const routineKey = req.params.routineKey as string; await assertBuiltInAgentsEnabled(); assertCompanyAccess(req, companyId); - const current = await svc.get(companyId, key); await assertCanControlBuiltInRoutine(req, companyId); const actor = getActorInfo(req); const state = await svc.enableRoutineSchedule(companyId, key, routineKey, { @@ -266,7 +265,6 @@ export function builtInAgentRoutes(db: Db) { const routineKey = req.params.routineKey as string; await assertBuiltInAgentsEnabled(); assertCompanyAccess(req, companyId); - const current = await svc.get(companyId, key); await assertCanControlBuiltInRoutine(req, companyId); const actor = getActorInfo(req); const state = await svc.disableRoutineSchedule(companyId, key, routineKey, {