فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A03): reject transaction bulk clear of append-only history
davoodmehraban89 committed
Oct 16, 2026 at 23:32 UTC
ae617c3f0eea32d7dfc8519bba62bc599e0e9ec2
1 file changed
+3
-1
src/core/StorageService.js
+3
-1
@@ -251,7 +251,9 @@ class StorageServiceImpl {
251
delete: (s, id) => APPEND_ONLY_STORES.has(s)
252
? Promise.reject(new Error('حذف مستقیم سابقه ممیزی یا اصلاح سند مجاز نیست'))
253
: wrap(os(s).delete(id)).then(() => undefined),
254
- clear: (s) => wrap(os(s).clear()).then(() => undefined)
254
+ clear: (s) => APPEND_ONLY_STORES.has(s)
255
+ ? Promise.reject(new Error('پاکسازی مستقیم سابقه ممیزی یا اصلاح سند مجاز نیست'))
256
+ : wrap(os(s).clear()).then(() => undefined)
257
};
258
259
let result;