Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit 8c675ec

Browse files
committed
Execute recurring transaction on user profile switch && Version 2.0.3
1 parent 3430e02 commit 8c675ec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FinanceList-Desktop",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A cross-platform finance manager",
55
"main": "./src/app/main.js",
66
"scripts": {

src/app/scripts/user/userProfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const RecurrTrans = require(__dirname + '/../updates/recurrTrans.js');
2+
13
const {sep} = require(__dirname + '/../storage/paths.js');
24

35
/**
@@ -67,6 +69,7 @@ class UserProfile {
6769
switchToUserProfile(newUser) {
6870
if (this.storage.readPreference('users').includes(newUser)) {
6971
this.storage.storePreference('activeUser', newUser);
72+
(new RecurrTrans(this.storage)).execRecurrTransact();
7073
}
7174
}
7275
}

0 commit comments

Comments
 (0)