فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A03): route company audit history restore through AuditService
davoodmehraban89 committed
Oct 19, 2026 at 18:35 UTC
77bde00e301536c239340aae82f21b69574b8ba8
1 file changed
+2
-1
src/core/CompanyBackupService.js
+2
-1
@@ -120,7 +120,8 @@ export async function restoreCompanyBackup(data, { companyId, userId, mode = 'me
120
}
121
if (existing) counts.updated++;
122
else counts.added++;
123
- await tx.putRaw(store, row);
123
+ if (store === 'audit_events') await AuditService.restoreHistorical(tx, row);
124
+ else await tx.putRaw(store, row);
125
}
126
}
127