完善
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user