zhaoyingbo f5ee6f8555
All checks were successful
CI Monitor MIflow / build-image (push) Successful in 45s
feat: 修改监控Stage的方式
2024-08-08 11:04:09 +00:00

16 lines
524 B
TypeScript

import manageRobot from "../../controllers/manageRobot"
import netTool from "../../service/netTool"
/**
* 处理管理CI监视器的请求。
* @param {Request} req - 请求对象。
* @returns {Response} - 响应对象。
*/
export const manageCIMonitorReq = (req: Request): Response => {
const url = new URL(req.url)
const chat_id = url.searchParams.get("chat_id")
if (!chat_id) return netTool.badRequest("chat_id is required!")
manageRobot.sendCIReportByChatId(chat_id)
return netTool.ok("reporting...")
}