diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-05 19:47:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 19:47:47 +0530 |
commit | 96938cd6dd10e77e96d4ab34b6f64a349254d98d (patch) | |
tree | 68c9f814980e5cab5614d2c2816330a406749899 /app/Controllers/Http/ServiceController.js | |
parent | Change main license holder to Ferdi and remove one existing in docker directory (diff) | |
parent | Bump set-getter from 0.1.0 to 0.1.1 (diff) | |
download | ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.tar.gz ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.tar.zst ferdium-server-96938cd6dd10e77e96d4ab34b6f64a349254d98d.zip |
Merge branch 'master' into master
Diffstat (limited to 'app/Controllers/Http/ServiceController.js')
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index a1d26cb..4aa611c 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -140,7 +140,9 @@ class ServiceController { | |||
140 | let iconId; | 140 | let iconId; |
141 | do { | 141 | do { |
142 | iconId = uuid() + uuid(); | 142 | iconId = uuid() + uuid(); |
143 | // eslint-disable-next-line no-await-in-loop | ||
143 | } while (await fs.exists(path.join(Helpers.tmpPath('uploads'), iconId))); | 144 | } while (await fs.exists(path.join(Helpers.tmpPath('uploads'), iconId))); |
145 | iconId = `${iconId}.${icon.extname}`; | ||
144 | 146 | ||
145 | await icon.move(Helpers.tmpPath('uploads'), { | 147 | await icon.move(Helpers.tmpPath('uploads'), { |
146 | name: iconId, | 148 | name: iconId, |