bug修复

This commit is contained in:
2026-07-21 11:02:26 +08:00
parent 14899055a4
commit 1d7e7d999c
5 changed files with 51 additions and 27 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ from jinja2 import Environment, FileSystemLoader
from pathlib import Path
import os
from backend.database import get_db
from backend.database import get_db, db_add
from backend.models import Server, Domain, DeployLog
from backend.config import get_settings
@@ -142,5 +142,5 @@ async def report_deploy(
d = await _find_domain(db, domain, server_id=server.id, acme_config_id=acme_config_id)
log = DeployLog(domain_id=d.id, server_id=server.id, hostname=hostname, status=status, message=message)
db.add(log)
await db_add(db, log)
return {"ok": True}