removed comments in serve route handlers

This commit is contained in:
bill bittner 2018-07-30 17:02:18 -07:00
parent 76a3af4522
commit a91be45938
2 changed files with 2 additions and 6 deletions

View file

@ -36,17 +36,12 @@ const serveByClaim = (req, res) => {
({ claimName } = lbryUri.parseClaim(params.claim)); ({ claimName } = lbryUri.parseClaim(params.claim));
logger.debug('serve request:', { headers, ip, originalUrl, params }); logger.debug('serve request:', { headers, ip, originalUrl, params });
getClaimIdAndServeAsset(null, null, claimName, null, originalUrl, ip, res);
// get claim id getClaimIdAndServeAsset(null, null, claimName, null, originalUrl, ip, res);
// serve asset
sendGAServeEvent(headers, ip, originalUrl); sendGAServeEvent(headers, ip, originalUrl);
} catch (error) { } catch (error) {
// check for different bubbled up error messages
// fallback
return res.status(400).json({success: false, message: error.message}); return res.status(400).json({success: false, message: error.message});
} }

View file

@ -37,6 +37,7 @@ const serverByIdentifierAndClaim = (req, res) => {
} }
logger.debug('serve request:', { headers, ip, originalUrl, params }); logger.debug('serve request:', { headers, ip, originalUrl, params });
getClaimIdAndServeAsset(channelName, channelClaimId, claimName, claimId, originalUrl, ip, res); getClaimIdAndServeAsset(channelName, channelClaimId, claimName, claimId, originalUrl, ip, res);
sendGAServeEvent(headers, ip, originalUrl); sendGAServeEvent(headers, ip, originalUrl);