فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A03): authorize full backup audit replay within restore transaction
davoodmehraban89 committed
Oct 19, 2026 at 18:42 UTC
57c4cdf093903c6e4a981c310b23984cbc5ad623
1 file changed
+4
src/core/StorageService.js
+4
@@ -435,6 +435,10 @@ class StorageServiceImpl {
435
}
436
437
await this.transaction(STORES, async tx => {
438
+ const auditRows = (json.data.audit_events || []).filter(item => !!item);
439
+ if (auditRows.length) AuditService.authorizeRestore(tx, {
440
+ companyId: auditRows[0].companyId, rows: auditRows
441
+ });
442
for (const store of STORES) {
443
const items = json.data[store];
444
if (!items) continue;