opentok.listArchives returns incorrect totalCount in callback
ovvn opened this issue · 3 comments
ovvn commented
When doing opentok.listArchives
I expect to get a total count of all archives, instead the totalCount
equals to the pagination count
OpenTok = require 'opentok'
opentok = new OpenTok(apiKey, apiSecret)
offset = 0
count = 100 # pagination count
opentok.listArchives {offset, count}, (err, archives, totalCount) ->
console.log {totalCount} # 100
if err
console.log {err}
return res.json(false)
res.json {archives, totalCount}
FranciscoCano commented
Updated: Yeah, this is a known issue and will be fixed in the next server release.
ovvn commented
@FranciscoCano any updates on this?