fix: resolve_approval漏查project_id列→人工审批任务永远pending(阻塞任务泄漏)
This commit is contained in:
parent
6f0aaee727
commit
5d8978b78d
@ -208,7 +208,7 @@ async def resolve_approval(approval_id, result, operator=""):
|
|||||||
db, dbname = get_db()
|
db, dbname = get_db()
|
||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
recs = await sor.sqlExe(
|
recs = await sor.sqlExe(
|
||||||
"SELECT id, report_id, status FROM opp_approvals WHERE id=${i}$",
|
"SELECT id, report_id, project_id, status FROM opp_approvals WHERE id=${i}$",
|
||||||
{"i": approval_id})
|
{"i": approval_id})
|
||||||
await sor.sqlExe("COMMIT", {})
|
await sor.sqlExe("COMMIT", {})
|
||||||
if not recs:
|
if not recs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user