Khrisna commited on
Commit
99aaef5
·
verified ·
1 Parent(s): f1ee166

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -285,7 +285,7 @@ app.post('/api/youtube/info', async (req, res) => {
285
  const response = ytdl.getInfo(url)
286
  res.json({
287
  status: "ok",
288
- result: ...response
289
  })
290
  } catch (e) {
291
  console.log(e)
 
285
  const response = ytdl.getInfo(url)
286
  res.json({
287
  status: "ok",
288
+ result: { ...response }
289
  })
290
  } catch (e) {
291
  console.log(e)