diff options
Diffstat (limited to 'app/Controllers/Http')
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index 5972cd0..4cc35d3 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -205,12 +205,9 @@ class ServiceController { | |||
205 | if (settings.customIcon === 'delete') { | 205 | if (settings.customIcon === 'delete') { |
206 | fs.remove( | 206 | fs.remove( |
207 | path.join(Application.tmpPath('uploads'), settings.iconId), | 207 | path.join(Application.tmpPath('uploads'), settings.iconId), |
208 | err => { | 208 | ).catch(error => { |
209 | if (err) { | 209 | console.error(error); |
210 | return console.error(err); | 210 | }); |
211 | } | ||
212 | }, | ||
213 | ); | ||
214 | 211 | ||
215 | settings.iconId = undefined; | 212 | settings.iconId = undefined; |
216 | settings.customIconVersion = undefined; | 213 | settings.customIconVersion = undefined; |