Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Fix SimplePushCalls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Oct 8, 2014
1 parent c84b262 commit 3a367ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loop/routes/calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ module.exports = function(app, conf, logError, storage, tokBox, auth,
app.post('/calls/:token', validators.validateToken,
validators.validateCallType, function(req, res) {
storage.getUserSimplePushURLs(req.callUrlData.userMac,
function(err, urls) {
function(err, simplePushURLsMapping) {
if (res.serverError(err)) return;

var urls = simplePushURLsMapping.calls;

if (!urls) {
sendError(res, 410, errors.EXPIRED, "Gone");
return;
Expand Down

0 comments on commit 3a367ea

Please sign in to comment.