akkun3704 commited on
Commit
8e1e337
·
1 Parent(s): 3ffe5fa

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -103,7 +103,7 @@ app.get('/yt/convert', async (req, res) => {
103
  }
104
  }))
105
 
106
- const reqTaskId = await fetchPost('https://srvcdn3.2convert.me/api/json', `hash=${hash}`)
107
  if (!reqTaskId.ok) return res.json({ success: false, message: 'Hash not found' })
108
 
109
  const reqTaskJson = await reqTaskId.json()
 
103
  }
104
  }))
105
 
106
+ const reqTaskId = await fetchPost('https://srvcdn3.2convert.me/api/json', `hash=${encodeURIComponent(hash)}`)
107
  if (!reqTaskId.ok) return res.json({ success: false, message: 'Hash not found' })
108
 
109
  const reqTaskJson = await reqTaskId.json()