diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 09:56:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:22 +0200 |
commit | 2fb5b3a55aeebcc77f4b3a0c029bbf0738ef0063 (patch) | |
tree | 3f03677870548c648070ac138a2b5ca36ee8fbeb /server/lib/avatar.ts | |
parent | b876eaf11a1ed9683664d94767ca684ba5b77753 (diff) | |
download | PeerTube-2fb5b3a55aeebcc77f4b3a0c029bbf0738ef0063.tar.gz PeerTube-2fb5b3a55aeebcc77f4b3a0c029bbf0738ef0063.tar.zst PeerTube-2fb5b3a55aeebcc77f4b3a0c029bbf0738ef0063.zip |
Relax videos list thumbnail api join
Diffstat (limited to 'server/lib/avatar.ts')
-rw-r--r-- | server/lib/avatar.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/avatar.ts b/server/lib/avatar.ts index dca543d0b..09b4e38ca 100644 --- a/server/lib/avatar.ts +++ b/server/lib/avatar.ts | |||
@@ -15,7 +15,7 @@ async function updateActorAvatarFile (avatarPhysicalFile: Express.Multer.File, a | |||
15 | const extension = extname(avatarPhysicalFile.filename) | 15 | const extension = extname(avatarPhysicalFile.filename) |
16 | const avatarName = uuidv4() + extension | 16 | const avatarName = uuidv4() + extension |
17 | const destination = join(CONFIG.STORAGE.AVATARS_DIR, avatarName) | 17 | const destination = join(CONFIG.STORAGE.AVATARS_DIR, avatarName) |
18 | await processImage(avatarPhysicalFile, destination, AVATARS_SIZE) | 18 | await processImage(avatarPhysicalFile.path, destination, AVATARS_SIZE) |
19 | 19 | ||
20 | return retryTransactionWrapper(() => { | 20 | return retryTransactionWrapper(() => { |
21 | return sequelizeTypescript.transaction(async t => { | 21 | return sequelizeTypescript.transaction(async t => { |