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

Commit

Permalink
Execute recurring transaction on user profile switch && Version 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte311 committed Jan 7, 2021
1 parent 3430e02 commit 8c675ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FinanceList-Desktop",
"version": "2.0.2",
"version": "2.0.3",
"description": "A cross-platform finance manager",
"main": "./src/app/main.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/app/scripts/user/userProfile.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const RecurrTrans = require(__dirname + '/../updates/recurrTrans.js');

const {sep} = require(__dirname + '/../storage/paths.js');

/**
Expand Down Expand Up @@ -67,6 +69,7 @@ class UserProfile {
switchToUserProfile(newUser) {
if (this.storage.readPreference('users').includes(newUser)) {
this.storage.storePreference('activeUser', newUser);
(new RecurrTrans(this.storage)).execRecurrTransact();
}
}
}
Expand Down

0 comments on commit 8c675ec

Please sign in to comment.