Merge pull request #216 from lbryio/apiPublishNew
returns channel create result for use outside lbry-redux
This commit is contained in:
commit
c763f35452
2 changed files with 4 additions and 0 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -2525,11 +2525,13 @@ function doCreateChannel(name, amount, optionalParams) {
|
||||||
type: CREATE_CHANNEL_COMPLETED,
|
type: CREATE_CHANNEL_COMPLETED,
|
||||||
data: { channelClaim }
|
data: { channelClaim }
|
||||||
});
|
});
|
||||||
|
return channelClaim;
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: CREATE_CHANNEL_FAILED,
|
type: CREATE_CHANNEL_FAILED,
|
||||||
data: error.message
|
data: error.message
|
||||||
});
|
});
|
||||||
|
return error;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,12 +288,14 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
|
||||||
type: ACTIONS.CREATE_CHANNEL_COMPLETED,
|
type: ACTIONS.CREATE_CHANNEL_COMPLETED,
|
||||||
data: { channelClaim },
|
data: { channelClaim },
|
||||||
});
|
});
|
||||||
|
return channelClaim;
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.CREATE_CHANNEL_FAILED,
|
type: ACTIONS.CREATE_CHANNEL_FAILED,
|
||||||
data: error.message,
|
data: error.message,
|
||||||
});
|
});
|
||||||
|
return error;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue