MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / update_core

Function update_core

astrbot/dashboard/api/updates.py:138–143  ·  view source on GitHub ↗
(
    payload: UpdateRequest,
    _auth: AuthContext = Depends(require_system_scope),
    service: UpdateService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

136
137@router.post("/updates/core")
138async def update_core(
139 payload: UpdateRequest,
140 _auth: AuthContext = Depends(require_system_scope),
141 service: UpdateService = Depends(get_service),
142):
143 return await _run(lambda: service.update_project(_model_dict(payload)))
144
145
146@legacy_router.post("/do")

Callers

nothing calls this directly

Calls 3

_runFunction · 0.70
_model_dictFunction · 0.70
update_projectMethod · 0.45

Tested by

no test coverage detected