returnres.status(400).send(JSON.stringify({success:false,message:'Got bad status of '+response.status+' when checking limits with endorser server. Verify that the account exists and that the JWT works for that server.'}));
returnres.status(400).send(JSON.stringify({success:false,message:'Got bad status of '+response.status+' when checking limits with endorser server. Verify that the account exists and that the JWT works for that server.'}));
}else{
}else{
constbody=awaitresponse.json();
constbody=awaitresponse.json();
limitPerWeek=body.maxClaimsPerWeek
limitPerWeek=body.maxClaimsPerWeek/4;// allowing fewer images than claims