fix: format
This commit is contained in:
@@ -99,8 +99,8 @@ router.post("/sdk/robots", requireAPIKey, async (req: AuthenticatedRequest, res:
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const eventName = robotMeta.isLLM
|
const eventName = robotMeta.isLLM
|
||||||
? "maxun-oss-llm-robot-created"
|
? "maxun-oss-llm-robot-created"
|
||||||
: "maxun-oss-robot-created";
|
: "maxun-oss-robot-created";
|
||||||
capture(eventName, {
|
capture(eventName, {
|
||||||
robot_meta: robot.recording_meta,
|
robot_meta: robot.recording_meta,
|
||||||
@@ -434,7 +434,7 @@ router.post("/sdk/robots/:id/execute", requireAPIKey, async (req: AuthenticatedR
|
|||||||
let listData: any[] = [];
|
let listData: any[] = [];
|
||||||
if (run.serializableOutput?.scrapeList) {
|
if (run.serializableOutput?.scrapeList) {
|
||||||
const scrapeList: any = run.serializableOutput.scrapeList;
|
const scrapeList: any = run.serializableOutput.scrapeList;
|
||||||
|
|
||||||
if (scrapeList.scrapeList && Array.isArray(scrapeList.scrapeList)) {
|
if (scrapeList.scrapeList && Array.isArray(scrapeList.scrapeList)) {
|
||||||
listData = scrapeList.scrapeList;
|
listData = scrapeList.scrapeList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user