randydev commited on
Commit
e66f0a6
·
verified ·
1 Parent(s): 93067a0

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. lib/scrapper.js +1 -1
lib/scrapper.js CHANGED
@@ -24,7 +24,7 @@ const TiktokDownloader = async (url) => {
24
  try {
25
  const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
26
  const response = await axios.get(url);
27
- return response.data;
28
  } catch (error) {
29
  console.error("Error:", e.message);
30
  return null;
 
24
  try {
25
  const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
26
  const response = await axios.get(url);
27
+ return response.data.data;
28
  } catch (error) {
29
  console.error("Error:", e.message);
30
  return null;