fix: robot delcapture
This commit is contained in:
@@ -392,13 +392,14 @@ router.delete("/sdk/robots/:id", requireAPIKey, async (req: AuthenticatedRequest
|
|||||||
|
|
||||||
logger.info(`[SDK] Robot deleted: ${robotId}`);
|
logger.info(`[SDK] Robot deleted: ${robotId}`);
|
||||||
|
|
||||||
capture(
|
const deleteEventName = robot.recording_meta.isLLM
|
||||||
'maxun-oss-llm-robot-deleted',
|
? "maxun-oss-llm-robot-deleted"
|
||||||
{
|
: "maxun-oss-robot-deleted";
|
||||||
robotId: robotId,
|
capture(deleteEventName, {
|
||||||
user_id: req.user?.id,
|
robotId: robotId,
|
||||||
deleted_at: new Date().toISOString(),
|
user_id: req.user?.id,
|
||||||
}
|
deleted_at: new Date().toISOString(),
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
|
|||||||
Reference in New Issue
Block a user