use purchase_receipt instead of content_fee

This commit is contained in:
Sean Yesmunt 2020-05-19 14:25:46 -04:00
parent 0730becb35
commit 02831fe359
4 changed files with 6 additions and 6 deletions

4
dist/bundle.es.js vendored
View file

@ -3958,10 +3958,10 @@ function doFileGet(uri, saveFile = true, onSuccess) {
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true })); dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
} else { } else {
if (streamInfo.content_fee) { if (streamInfo.purchase_receipt) {
dispatch({ dispatch({
type: PURCHASE_URI_COMPLETED, type: PURCHASE_URI_COMPLETED,
data: { uri, purchaseReceipt: streamInfo.content_fee } data: { uri, purchaseReceipt: streamInfo.purchase_receipt }
}); });
} }
dispatch({ dispatch({

View file

@ -11,7 +11,7 @@ declare type FileListItem = {
claim_id: string, claim_id: string,
claim_name: string, claim_name: string,
completed: false, completed: false,
content_fee?: {}, purchase_receipt?: {},
download_directory: string, download_directory: string,
download_path: string, download_path: string,
file_name: string, file_name: string,

2
flow-typed/File.js vendored
View file

@ -11,7 +11,7 @@ declare type FileListItem = {
claim_id: string, claim_id: string,
claim_name: string, claim_name: string,
completed: false, completed: false,
content_fee?: {}, purchase_receipt?: {},
download_directory: string, download_directory: string,
download_path: string, download_path: string,
file_name: string, file_name: string,

View file

@ -39,10 +39,10 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true })); dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
} else { } else {
if (streamInfo.content_fee) { if (streamInfo.purchase_receipt) {
dispatch({ dispatch({
type: ACTIONS.PURCHASE_URI_COMPLETED, type: ACTIONS.PURCHASE_URI_COMPLETED,
data: { uri, purchaseReceipt: streamInfo.content_fee }, data: { uri, purchaseReceipt: streamInfo.purchase_receipt },
}); });
} }
dispatch({ dispatch({