File tree 1 file changed +8
-2
lines changed
libraries/nestjs-libraries/src/integrations/social
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import {
5
5
SocialProvider ,
6
6
} from '@gitroom/nestjs-libraries/integrations/social/social.integrations.interface' ;
7
7
import dayjs from 'dayjs' ;
8
- import { SocialAbstract } from '@gitroom/nestjs-libraries/integrations/social.abstract' ;
8
+ import {
9
+ BadBody ,
10
+ SocialAbstract ,
11
+ } from '@gitroom/nestjs-libraries/integrations/social.abstract' ;
9
12
import { TikTokDto } from '@gitroom/nestjs-libraries/dtos/posts/providers-settings/tiktok.dto' ;
10
13
11
14
export class TiktokProvider extends SocialAbstract implements SocialProvider {
@@ -183,7 +186,10 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
183
186
} ,
184
187
] ;
185
188
} catch ( err ) {
186
- return [ ] ;
189
+ throw new BadBody ( JSON . stringify ( err ) , {
190
+ // @ts -ignore
191
+ postDetails
192
+ } ) ;
187
193
}
188
194
}
189
195
}
You can’t perform that action at this time.
0 commit comments