feat: fix bad body

This commit is contained in:
Nevo David 2024-09-29 19:55:17 +07:00
parent 44688ee77a
commit c40039423f
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ export class LinkedinProvider extends SocialAbstract implements SocialProvider {
return finalOutput;
} catch (err: any) {
throw new BadBody(JSON.stringify(err), {
throw new BadBody('error-posting-to-linkedin', JSON.stringify(err), {
// @ts-ignore
fileName,
personId,

View File

@ -186,7 +186,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
},
];
} catch (err) {
throw new BadBody(JSON.stringify(err), {
throw new BadBody('titok-error', JSON.stringify(err), {
// @ts-ignore
postDetails
});