Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rank: function(rankingRequest, metadata){
rankingRequest.getRecordsList().forEach(record => {
console.log(record.getId() + " " + record.getData().getSupername());
});
console.log("....");
let resp = new RankingResponse();
resp.setId(rankingRequest.getRecordsList()[0].getId());
return Single.of(resp);
}
};