diff options
Diffstat (limited to 'src')
-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, |