feat: fix bad body
This commit is contained in:
parent
44688ee77a
commit
c40039423f
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue