update types
This commit is contained in:
parent
02831fe359
commit
58e59acb10
4 changed files with 8 additions and 6 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -3958,10 +3958,10 @@ function doFileGet(uri, saveFile = true, onSuccess) {
|
|||
|
||||
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
|
||||
} else {
|
||||
if (streamInfo.purchase_receipt) {
|
||||
if (streamInfo.purchase_receipt || streamInfo.content_fee) {
|
||||
dispatch({
|
||||
type: PURCHASE_URI_COMPLETED,
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt }
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt || streamInfo.content_fee }
|
||||
});
|
||||
}
|
||||
dispatch({
|
||||
|
|
3
dist/flow-typed/File.js
vendored
3
dist/flow-typed/File.js
vendored
|
@ -11,7 +11,8 @@ declare type FileListItem = {
|
|||
claim_id: string,
|
||||
claim_name: string,
|
||||
completed: false,
|
||||
purchase_receipt?: {},
|
||||
content_fee?: { txid: string },
|
||||
purchase_receipt?: { txid: string },
|
||||
download_directory: string,
|
||||
download_path: string,
|
||||
file_name: string,
|
||||
|
|
3
flow-typed/File.js
vendored
3
flow-typed/File.js
vendored
|
@ -11,7 +11,8 @@ declare type FileListItem = {
|
|||
claim_id: string,
|
||||
claim_name: string,
|
||||
completed: false,
|
||||
purchase_receipt?: {},
|
||||
content_fee?: { txid: string },
|
||||
purchase_receipt?: { txid: string },
|
||||
download_directory: string,
|
||||
download_path: string,
|
||||
file_name: string,
|
||||
|
|
|
@ -39,10 +39,10 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get
|
|||
|
||||
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
|
||||
} else {
|
||||
if (streamInfo.purchase_receipt) {
|
||||
if (streamInfo.purchase_receipt || streamInfo.content_fee) {
|
||||
dispatch({
|
||||
type: ACTIONS.PURCHASE_URI_COMPLETED,
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt },
|
||||
data: { uri, purchaseReceipt: streamInfo.purchase_receipt || streamInfo.content_fee },
|
||||
});
|
||||
}
|
||||
dispatch({
|
||||
|
|
Loading…
Reference in a new issue