in source/rest-api-handler/index.js [58:78]
function processEvents (projectId, events) {
return new Promise((resolve) => {
var params = {
ApplicationId: projectId,
EventsRequest: {
BatchItem: events
}
};
log.debug(JSON.stringify(params,null,2));
pinpoint.putEvents(params, function (err) {
if (err) {
log.error(err, err.stack);
resolve(); // Just going to log and return
} else {
resolve();
}
});
});
}