upd: megalodon package fix lines, enable error on media

This commit is contained in:
Mar0xy 2023-09-24 23:46:02 +02:00
parent 60b2842203
commit 8f219557d4
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ export class MastodonApiServerService {
const data = await client.uploadMedia(multipartData);
reply.send(convertAttachment(data.data as Entity.Attachment));
} catch (e: any) {
/* console.error(e); */
console.error(e);
reply.code(401).send(e.response.data);
}
});
@ -161,7 +161,7 @@ export class MastodonApiServerService {
const data = await client.uploadMedia(multipartData, _request.body!);
reply.send(convertAttachment(data.data as Entity.Attachment));
} catch (e: any) {
/* console.error(e); */
console.error(e);
reply.code(401).send(e.response.data);
}
});