changed /api stat category to 'serve' from 'publish'

This commit is contained in:
bill bittner 2017-06-30 09:52:58 -07:00
parent 6685511aa5
commit de7eef35be

View file

@ -18,7 +18,7 @@ module.exports = app => {
lbryApi lbryApi
.getClaimsList(params.claim) .getClaimsList(params.claim)
.then(claimsList => { .then(claimsList => {
postToStats('publish', originalUrl, ip, 'success'); postToStats('serve', originalUrl, ip, 'success');
res.status(200).json(claimsList); res.status(200).json(claimsList);
}) })
.catch(error => { .catch(error => {
@ -35,7 +35,7 @@ module.exports = app => {
lbryApi lbryApi
.resolveUri(params.uri) .resolveUri(params.uri)
.then(resolvedUri => { .then(resolvedUri => {
postToStats('publish', originalUrl, ip, 'success'); postToStats('serve', originalUrl, ip, 'success');
res.status(200).json(resolvedUri); res.status(200).json(resolvedUri);
}) })
.catch(error => { .catch(error => {