From 3fa1ed2796b51b739c3804349929bf458cfd4604 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 26 Aug 2019 19:02:46 +0100 Subject: [PATCH] fix: use claimName instead of contentName in buildURI --- dist/bundle.es.js | 2 +- package.json | 2 +- src/redux/actions/subscriptions.js | 2 +- yarn.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 8123f01..c2f0e47 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1590,7 +1590,7 @@ const doCheckSubscription = (subscriptionUri, shouldNotify) => (dispatch, getSta const newUnread = []; claimsInChannel.slice(0, latestIndexToNotify).forEach(claim => { const uri = lbryRedux.buildURI({ - contentName: claim.name, + claimName: claim.name, claimId: claim.claim_id }, true); diff --git a/package.json b/package.json index f804b90..a3ff80a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "name": "LBRY Inc.", "email": "hello@lbry.io" }, - "main": "dist/bundle.es.js", + "main": "dist/bundle.js", "module": "dist/bundle.es.js", "scripts": { "build": "rollup --config", diff --git a/src/redux/actions/subscriptions.js b/src/redux/actions/subscriptions.js index 5794ab4..836b96e 100644 --- a/src/redux/actions/subscriptions.js +++ b/src/redux/actions/subscriptions.js @@ -186,7 +186,7 @@ export const doCheckSubscription = (subscriptionUri: string, shouldNotify?: bool const newUnread = []; claimsInChannel.slice(0, latestIndexToNotify).forEach(claim => { - const uri = buildURI({ contentName: claim.name, claimId: claim.claim_id }, true); + const uri = buildURI({ claimName: claim.name, claimId: claim.claim_id }, true); const shouldDownload = shouldAutoDownload && Boolean(downloadCount < SUBSCRIPTION_DOWNLOAD_LIMIT && !claim.value.stream.metadata.fee); diff --git a/yarn.lock b/yarn.lock index 8f6213a..4a5fd0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2683,7 +2683,7 @@ lodash.get@^4.4.2: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" -lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0: +lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"