Skip to content

Commit

Permalink
feat: check tiktok error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevo David committed Sep 26, 2024
1 parent 9c98311 commit 129b21b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import {
SocialProvider,
} from '@gitroom/nestjs-libraries/integrations/social/social.integrations.interface';
import dayjs from 'dayjs';
import { SocialAbstract } from '@gitroom/nestjs-libraries/integrations/social.abstract';
import {
BadBody,
SocialAbstract,
} from '@gitroom/nestjs-libraries/integrations/social.abstract';
import { TikTokDto } from '@gitroom/nestjs-libraries/dtos/posts/providers-settings/tiktok.dto';

export class TiktokProvider extends SocialAbstract implements SocialProvider {
Expand Down Expand Up @@ -183,7 +186,10 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
},
];
} catch (err) {
return [];
throw new BadBody(JSON.stringify(err), {
// @ts-ignore
postDetails
});
}
}
}

0 comments on commit 129b21b

Please sign in to comment.