mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
res.json is not a Promise.
This commit is contained in:
@@ -2,7 +2,7 @@ const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/', (req, res, next) => {
|
||||
router.get('/', (req, res) => {
|
||||
console.log('Stream endpoint has been hit with asset_id ', req.query.asset_id);
|
||||
res.json([
|
||||
{
|
||||
@@ -27,7 +27,7 @@ router.get('/', (req, res, next) => {
|
||||
'created_at': new Date().getTime() - 400000,
|
||||
'asset_id': 'assetTest'
|
||||
}
|
||||
]).catch(next);
|
||||
]);
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user