removed comments in serve route handlers
This commit is contained in:
parent
76a3af4522
commit
a91be45938
2 changed files with 2 additions and 6 deletions
|
@ -36,17 +36,12 @@ const serveByClaim = (req, res) => {
|
|||
|
||||
({ claimName } = lbryUri.parseClaim(params.claim));
|
||||
logger.debug('serve request:', { headers, ip, originalUrl, params });
|
||||
getClaimIdAndServeAsset(null, null, claimName, null, originalUrl, ip, res);
|
||||
|
||||
// get claim id
|
||||
// serve asset
|
||||
getClaimIdAndServeAsset(null, null, claimName, null, originalUrl, ip, res);
|
||||
|
||||
sendGAServeEvent(headers, ip, originalUrl);
|
||||
|
||||
} catch (error) {
|
||||
// check for different bubbled up error messages
|
||||
|
||||
// fallback
|
||||
return res.status(400).json({success: false, message: error.message});
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ const serverByIdentifierAndClaim = (req, res) => {
|
|||
}
|
||||
|
||||
logger.debug('serve request:', { headers, ip, originalUrl, params });
|
||||
|
||||
getClaimIdAndServeAsset(channelName, channelClaimId, claimName, claimId, originalUrl, ip, res);
|
||||
|
||||
sendGAServeEvent(headers, ip, originalUrl);
|
||||
|
|
Loading…
Reference in a new issue