import { CONFIG, IMAGE_MIMETYPE_EXT, sequelizeTypescript } from '../../../initializers'
import { sendUpdateActor } from '../../../lib/activitypub/send'
import {
- asyncMiddleware,
+ asyncMiddleware, asyncRetryTransactionMiddleware,
authenticate,
commonVideosFiltersValidator,
paginationValidator,
meRouter.put('/me',
authenticate,
usersUpdateMeValidator,
- asyncMiddleware(updateMe)
+ asyncRetryTransactionMiddleware(updateMe)
)
meRouter.post('/me/avatar/pick',
authenticate,
reqAvatarFile,
updateAvatarValidator,
- asyncMiddleware(updateMyAvatar)
+ asyncRetryTransactionMiddleware(updateMyAvatar)
)
// ##### Subscriptions part #####
meRouter.delete('/me/subscriptions/:uri',
authenticate,
userSubscriptionGetValidator,
- asyncMiddleware(deleteUserSubscription)
+ asyncRetryTransactionMiddleware(deleteUserSubscription)
)
// ---------------------------------------------------------------------------