aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/avatar.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-24 09:56:25 +0200
committerChocobozzz <me@florianbigard.com>2019-04-24 16:26:22 +0200
commit2fb5b3a55aeebcc77f4b3a0c029bbf0738ef0063 (patch)
tree3f03677870548c648070ac138a2b5ca36ee8fbeb /server/lib/avatar.ts
parentb876eaf11a1ed9683664d94767ca684ba5b77753 (diff)
downloadPeerTube-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.ts2
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 => {