refactor(approval-policy): normalize decisionNote into single local

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:56:34 -04:00
1 parent 2deaa0d8b8
commit fc47b60d1b
1 file changed
+3 -2
+3 -2
View File
@@ -28,11 +28,12 @@ export function resolveApprovalDecision({
detail?: string | null;
actor?: string;
}) {
const note = decisionNote ?? "";
db.decideApproval({
companyId,
approvalId,
state,
decisionNote: decisionNote ?? "",
decisionNote: note,
});
db.addActivity({
companyId,
@@ -40,7 +41,7 @@ export function resolveApprovalDecision({
action: `approval.${state}`,
entityType: "approval",
entityId: approvalId,
detail: detail ?? decisionNote ?? "",
detail: detail ?? note,
});
handleApprovalResolved(approvalId, companyId, state);
}