fix: accidental removal of handler

This commit is contained in:
Mar0xy 2023-09-25 22:53:51 +02:00
parent 5ffcd278be
commit 2b1e6eb180
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ export class MastodonApiServerService {
}
});
fastify.patch('/v1/accounts/update_credentials', async (_request, reply) => {
fastify.patch('/v1/accounts/update_credentials', { preHandler: upload.none() }, async (_request, reply) => {
const BASE_URL = `${_request.protocol}://${_request.hostname}`;
const accessTokens = _request.headers.authorization;
const client = getClient(BASE_URL, accessTokens); // we are using this here, because in private mode some info isnt