修复生产回填审计标识(07-28-ceo-finance-fallback)
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-07-28 14:25:03 +08:00
父节点 35948729cf
当前提交 a74cba1112
共修改 3 个文件,包含 89 行新增和 4 行删除
@@ -215,12 +215,12 @@ async function execute(options, pool = new Pool({ connectionString: process.env.
await client.query(
`
INSERT INTO audit_logs
(request_id, actor_id, action, target_type, target_id, ip_address, user_agent, extra)
(id, request_id, actor_id, action, target_type, target_id, ip_address, user_agent, extra)
VALUES
($1, $2::uuid, 'APPROVAL_RULE_UPDATED', 'approval_rule', $3::uuid, NULL,
'controlled-script/07-28-ceo-finance-fallback', $4::jsonb)
($1::uuid, $2, $3::uuid, 'APPROVAL_RULE_UPDATED', 'approval_rule', $4::uuid, NULL,
'controlled-script/07-28-ceo-finance-fallback', $5::jsonb)
`,
[requestId, admins[0].id, item.id, JSON.stringify({
[crypto.randomUUID(), requestId, admins[0].id, item.id, JSON.stringify({
task: "07-28-ceo-finance-fallback",
band: item.band,
before: item.before,
@@ -298,6 +298,7 @@ module.exports = {
TARGET_BY_BAND,
assertPeopleBaseline,
buildRulePlan,
execute,
getBand,
parseArgs,
};