فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A04): derive backup app version from package metadata
davoodmehraban89 committed
Oct 14, 2026 at 22:33 UTC
0fe172df78c6ba56c23b6841465e0308632f747a
1 file changed
+4
-1
src/controllers/SettingsController.js
+4
-1
@@ -2,6 +2,7 @@
2
// SettingsController — تنظیمات، بکاپ و بازیابی
3
// ============================================================
4
5
+import appPackage from '../../package.json' with { type: 'json' };
6
import { StorageService, STORES } from '../core/StorageService.js';
7
import { Auth } from '../core/Auth.js';
8
import { DataScope } from '../core/DataScope.js';
@@ -34,7 +35,9 @@ class SettingsControllerImpl {
35
36
const backup = {
37
app: 'Factor-easyPro',
37
- version: '2.0.0',
38
+ // Human-readable app version and IndexedDB schema are distinct.
39
+ version: appPackage.version,
40
+ appVersion: appPackage.version,
41
exportedAt: new Date().toISOString(),
42
exportedAtJalali: this._todayJalali(),
43
user: {