diff options
author | André Oliveira <oliveira.andrerodrigues95@gmail.com> | 2023-09-28 13:09:36 +0100 |
---|---|---|
committer | André Oliveira <oliveira.andrerodrigues95@gmail.com> | 2023-09-28 13:09:36 +0100 |
commit | 64f140de76868ac0abda5954685e8ba95853d2dd (patch) | |
tree | 876d705df10e5097cb53556d6589e5285595adea /app | |
parent | 1.3.13 [skip ci] (diff) | |
download | ferdium-server-64f140de76868ac0abda5954685e8ba95853d2dd.tar.gz ferdium-server-64f140de76868ac0abda5954685e8ba95853d2dd.tar.zst ferdium-server-64f140de76868ac0abda5954685e8ba95853d2dd.zip |
fix: error isnt catch so stops the code
Diffstat (limited to 'app')
-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; |