diff options
author | kytwb <kytwb@pm.me> | 2021-12-19 16:21:06 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-19 16:21:06 +0100 |
commit | 7053e29bfc93c70a6610ab699dafa9f5f177b38f (patch) | |
tree | 4b0cf728420eda917c798e7ff043eece231f8745 /src/internal-server | |
parent | Hotfix for requireAuthenticatedUser error (diff) | |
download | ferdium-app-7053e29bfc93c70a6610ab699dafa9f5f177b38f.tar.gz ferdium-app-7053e29bfc93c70a6610ab699dafa9f5f177b38f.tar.zst ferdium-app-7053e29bfc93c70a6610ab699dafa9f5f177b38f.zip |
Fixes #1475
Diffstat (limited to 'src/internal-server')
-rw-r--r-- | src/internal-server/app/Controllers/Http/ServiceController.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js index a3add4464..54cc69eb0 100644 --- a/src/internal-server/app/Controllers/Http/ServiceController.js +++ b/src/internal-server/app/Controllers/Http/ServiceController.js | |||
@@ -125,6 +125,7 @@ class ServiceController { | |||
125 | do { | 125 | do { |
126 | iconId = uuid() + uuid(); | 126 | iconId = uuid() + uuid(); |
127 | } while (fs.existsSync(path.join(Env.get('USER_PATH'), 'icons', iconId))); | 127 | } while (fs.existsSync(path.join(Env.get('USER_PATH'), 'icons', iconId))); |
128 | iconId = `${iconId}.${icon.extname}`; | ||
128 | 129 | ||
129 | await icon.move(path.join(Env.get('USER_PATH'), 'icons'), { | 130 | await icon.move(path.join(Env.get('USER_PATH'), 'icons'), { |
130 | name: iconId, | 131 | name: iconId, |