add permanent_url to lbryFirst publish payload

This commit is contained in:
Sean Yesmunt 2020-07-10 13:39:55 -04:00
parent c29123e815
commit a1673ebfa9
2 changed files with 7 additions and 1 deletions

3
dist/bundle.es.js vendored
View file

@ -4728,6 +4728,9 @@ const doPublish = (success, fail) => (dispatch, getState) => {
return success(response);
}
// $FlowFixMe
publishPayload.permanent_url = response.outputs[0].permanent_url;
return lbryFirstProxy.upload(publishPayload).then(() => {
// Return original publish response so app treats it like a normal publish
return success(response);

View file

@ -357,11 +357,14 @@ export const doPublish = (success: Function, fail: Function) => (
// The sdk will figure it out
if (filePath) publishPayload.file_path = filePath;
return Lbry.publish(publishPayload).then(response => {
return Lbry.publish(publishPayload).then((response: PublishResponse) => {
if (!useLBRYUploader) {
return success(response);
}
// $FlowFixMe
publishPayload.permanent_url = response.outputs[0].permanent_url;
return LbryFirst.upload(publishPayload)
.then(() => {
// Return original publish response so app treats it like a normal publish