This commit is contained in:
2026-07-20 10:26:58 +08:00
parent 9658015972
commit 1d8fe97a49
10 changed files with 105 additions and 45 deletions
+2 -1
View File
@@ -133,6 +133,7 @@ async def report_deploy(
domain: str,
status: str,
message: str = "",
hostname: str = "",
server: Server = Depends(verify_token),
db: AsyncSession = Depends(get_db),
):
@@ -144,6 +145,6 @@ async def report_deploy(
if not d:
raise HTTPException(status_code=404, detail="Domain not found for this server")
log = DeployLog(domain_id=d.id, server_id=server.id, status=status, message=message)
log = DeployLog(domain_id=d.id, server_id=server.id, hostname=hostname, status=status, message=message)
db.add(log)
return {"ok": True}