Update server.js
Browse files
server.js
CHANGED
|
@@ -22,6 +22,7 @@ app.get('/transcript', async (req, res) => {
|
|
| 22 |
const transcript = await getTranscript(url);
|
| 23 |
res.json({ transcript });
|
| 24 |
} catch (error) {
|
|
|
|
| 25 |
res.status(500).json({ error: 'Failed to fetch transcript' });
|
| 26 |
}
|
| 27 |
});
|
|
|
|
| 22 |
const transcript = await getTranscript(url);
|
| 23 |
res.json({ transcript });
|
| 24 |
} catch (error) {
|
| 25 |
+
console.log(error);
|
| 26 |
res.status(500).json({ error: 'Failed to fetch transcript' });
|
| 27 |
}
|
| 28 |
});
|