[courier] avoid loosing this context with

This commit is contained in:
spalger 2015-11-04 16:40:46 -06:00
parent bfb2b20ef5
commit 5f1b581da2

View file

@ -33,7 +33,10 @@ define(function (require) {
return responses[_.findIndex(executable, req)];
}
})
.then(defer.resolve, defer.reject);
.then(
(res) => defer.resolve(res),
(err) => defer.reject(err)
);
};