From 1ceb69139088dc871c816c0f308700916e8e57bf Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 12 Dec 2025 03:33:53 +0530 Subject: [PATCH] fix: format --- server/src/api/sdk.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/api/sdk.ts b/server/src/api/sdk.ts index 7edb40a0..f751508b 100644 --- a/server/src/api/sdk.ts +++ b/server/src/api/sdk.ts @@ -99,8 +99,8 @@ router.post("/sdk/robots", requireAPIKey, async (req: AuthenticatedRequest, res: } }); - const eventName = robotMeta.isLLM - ? "maxun-oss-llm-robot-created" + const eventName = robotMeta.isLLM + ? "maxun-oss-llm-robot-created" : "maxun-oss-robot-created"; capture(eventName, { robot_meta: robot.recording_meta, @@ -434,7 +434,7 @@ router.post("/sdk/robots/:id/execute", requireAPIKey, async (req: AuthenticatedR let listData: any[] = []; if (run.serializableOutput?.scrapeList) { const scrapeList: any = run.serializableOutput.scrapeList; - + if (scrapeList.scrapeList && Array.isArray(scrapeList.scrapeList)) { listData = scrapeList.scrapeList; }