X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fvideo-channel.ts;h=1fa842d9c984b2a112c6184831666e113c5e9bb1;hb=9ccff23877ec8d740fcd5a9254fcd2424b62d2c8;hp=ff6bbe44c0b068ba533fbac53cc283a6b01ae7d7;hpb=0491173a61aed66205c017e0d7e0503ea316c144;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts index ff6bbe44c..1fa842d9c 100644 --- a/server/controllers/api/video-channel.ts +++ b/server/controllers/api/video-channel.ts @@ -46,7 +46,7 @@ videoChannelRouter.get('/', videoChannelRouter.post('/', authenticate, - videoChannelsAddValidator, + asyncMiddleware(videoChannelsAddValidator), asyncRetryTransactionMiddleware(addVideoChannel) ) @@ -56,7 +56,7 @@ videoChannelRouter.post('/:nameWithHost/avatar/pick', // Check the rights asyncMiddleware(videoChannelsUpdateValidator), updateAvatarValidator, - asyncRetryTransactionMiddleware(updateVideoChannelAvatar) + asyncMiddleware(updateVideoChannelAvatar) ) videoChannelRouter.put('/:nameWithHost',