File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
libraries/nestjs-libraries/src/integrations/social Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
7878 `?client_key=${ process . env . TIKTOK_CLIENT_ID } ` +
7979 `&redirect_uri=${ encodeURIComponent (
8080 `${
81- process . env . NODE_ENV === 'development' || ! process . env . NODE_ENV
82- ? ` https://integration.git.sn/integrations/social/tiktok`
83- : ` ${ process . env . FRONTEND_URL } /integrations/social/tiktok`
84- } `
81+ process ? .env ?. FRONTEND_URL ?. indexOf ( 'https' ) === - 1
82+ ? ' https://redirectmeto.com/'
83+ : ''
84+ } ${ process ?. env ?. FRONTEND_URL } /integrations/social/tiktok `
8585 ) } ` +
8686 `&state=${ state } ` +
8787 `&response_type=code` +
@@ -199,7 +199,9 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
199199 ? `https://www.tiktok.com/@${ id } `
200200 : `https://www.tiktok.com/@${ id } /video/` +
201201 publicaly_available_post_id ,
202- id : ! publicaly_available_post_id ? publishId : publicaly_available_post_id ?. [ 0 ] ,
202+ id : ! publicaly_available_post_id
203+ ? publishId
204+ : publicaly_available_post_id ?. [ 0 ] ,
203205 } ;
204206 }
205207
@@ -210,7 +212,6 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
210212 } ) ;
211213 }
212214
213-
214215 await timer ( 3000 ) ;
215216 }
216217 }
You can’t perform that action at this time.
0 commit comments