aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-08-15 23:38:04 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-16 05:08:04 +0530
commitcbd0da469c4f509e8f4ff3ee530fabffa22983a8 (patch)
treed258d83209b2aa16ca05cb6b46a807a929c7636b /src/stores
parentUpgrade 'electron' to '26.0.0' (diff)
downloadferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.tar.gz
ferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.tar.zst
ferdium-app-cbd0da469c4f509e8f4ff3ee530fabffa22983a8.zip
Upgrade npm modules (#1312)
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.ts2
-rw-r--r--src/stores/RecipesStore.ts4
-rw-r--r--src/stores/ServicesStore.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index 0bf845e4d..b317d99fc 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -1,3 +1,4 @@
1import { URL } from 'node:url';
1import { ipcRenderer } from 'electron'; 2import { ipcRenderer } from 'electron';
2import { 3import {
3 app, 4 app,
@@ -11,7 +12,6 @@ import { action, computed, makeObservable, observable } from 'mobx';
11import moment from 'moment'; 12import moment from 'moment';
12import AutoLaunch from 'auto-launch'; 13import AutoLaunch from 'auto-launch';
13import ms from 'ms'; 14import ms from 'ms';
14import { URL } from 'node:url';
15import { readJsonSync } from 'fs-extra'; 15import { readJsonSync } from 'fs-extra';
16 16
17import { Stores } from '../@types/stores.types'; 17import { Stores } from '../@types/stores.types';
diff --git a/src/stores/RecipesStore.ts b/src/stores/RecipesStore.ts
index b645a5989..9b5565dcf 100644
--- a/src/stores/RecipesStore.ts
+++ b/src/stores/RecipesStore.ts
@@ -158,8 +158,8 @@ export default class RecipesStore extends TypedStore {
158 router.push('/settings/recipes'); 158 router.push('/settings/recipes');
159 debug(`Recipe ${recipeId} is not installed, trying to install it`); 159 debug(`Recipe ${recipeId} is not installed, trying to install it`);
160 160
161 const recipe = await this.installRecipeRequest.execute(recipeId) 161 const recipe =
162 .promise; 162 await this.installRecipeRequest.execute(recipeId).promise;
163 if (recipe) { 163 if (recipe) {
164 await this.allRecipesRequest.invalidate({ immediately: true }) 164 await this.allRecipesRequest.invalidate({ immediately: true })
165 .promise; 165 .promise;
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index 1cee0c57f..9c0072586 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -1,9 +1,9 @@
1import { join } from 'node:path';
1import { ipcRenderer, shell } from 'electron'; 2import { ipcRenderer, shell } from 'electron';
2import { action, reaction, computed, observable, makeObservable } from 'mobx'; 3import { action, reaction, computed, observable, makeObservable } from 'mobx';
3import { debounce, remove } from 'lodash'; 4import { debounce, remove } from 'lodash';
4import ms from 'ms'; 5import ms from 'ms';
5import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra'; 6import { ensureFileSync, pathExistsSync, writeFileSync } from 'fs-extra';
6import { join } from 'node:path';
7 7
8import { Stores } from '../@types/stores.types'; 8import { Stores } from '../@types/stores.types';
9import { ApiInterface } from '../api'; 9import { ApiInterface } from '../api';