Skip to content

Commit

Permalink
recent-calls single call record pull
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshivkumar committed Aug 19, 2024
1 parent c178df0 commit cc0f836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/routes/api/recent-calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ router.get('/:call_sid/record/:year/:month/:day/:format', async(req, res) => {
}
});

router.get('/call/:call_sid', async(req, res) => {
const { account_sid, call_sid } = req.params;
router.get('/Call/:call_sid', async(req, res) => {
const { call_sid } = req.params;
const { logger, queryCdrs } = req.app.locals;

try {
logger.debug('GET /call/:call_sid');
logger.debug('GET /Call/:call_sid');
const account_sid = parseAccountSid(req.originalUrl);
const data = await queryCdrs({
account_sid,
Expand Down

0 comments on commit cc0f836

Please sign in to comment.