diff options
author | 2017-12-29 01:33:22 -0500 | |
---|---|---|
committer | 2017-12-29 01:33:22 -0500 | |
commit | c6e2e18430e3eef7ec545704dded359d9c706683 (patch) | |
tree | 15567b9d17ac934983caeeb85615ea1777efe94e /src/api | |
parent | Add button to clear service cache (diff) | |
download | ferdium-app-c6e2e18430e3eef7ec545704dded359d9c706683.tar.gz ferdium-app-c6e2e18430e3eef7ec545704dded359d9c706683.tar.zst ferdium-app-c6e2e18430e3eef7ec545704dded359d9c706683.zip |
Delete session partition with service
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/ServerApi.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 8b3136d27..3daa2d8b6 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -22,6 +22,10 @@ import { | |||
22 | loadRecipeConfig, | 22 | loadRecipeConfig, |
23 | } from '../../helpers/recipe-helpers'; | 23 | } from '../../helpers/recipe-helpers'; |
24 | 24 | ||
25 | import { | ||
26 | removeServicePartitionDirectory, | ||
27 | } from '../../helpers/service-helpers.js'; | ||
28 | |||
25 | module.paths.unshift( | 29 | module.paths.unshift( |
26 | getDevRecipeDirectory(), | 30 | getDevRecipeDirectory(), |
27 | getRecipeDirectory(), | 31 | getRecipeDirectory(), |
@@ -209,7 +213,7 @@ export default class ServerApi { | |||
209 | throw request; | 213 | throw request; |
210 | } | 214 | } |
211 | const data = await request.json(); | 215 | const data = await request.json(); |
212 | 216 | await removeServicePartitionDirectory(id); | |
213 | console.debug('ServerApi::deleteService resolves', data); | 217 | console.debug('ServerApi::deleteService resolves', data); |
214 | return data; | 218 | return data; |
215 | } | 219 | } |