add tags to doUpdateChannel

This commit is contained in:
jessop 2019-07-18 10:27:35 -04:00
parent 755424a2a8
commit b07dfa172a
2 changed files with 15 additions and 1 deletions

9
dist/bundle.es.js vendored
View file

@ -2300,9 +2300,16 @@ function doUpdateChannel(params) {
description: params.description,
website_url: params.website,
email: params.email,
replace: true
replace: true,
tags: []
};
if (params.tags) {
updateParams.tags = params.tags.map(tag => tag.name);
}
// TODO add languages and locations as above
return lbryProxy.channel_update(updateParams).then(result => {
const channelClaim = result.outputs[0];
dispatch({

View file

@ -263,8 +263,15 @@ export function doUpdateChannel(params: any) {
website_url: params.website,
email: params.email,
replace: true,
tags: [],
};
if (params.tags) {
updateParams.tags = params.tags.map(tag => tag.name);
}
// TODO add languages and locations as above
return Lbry.channel_update(updateParams)
.then((result: ChannelUpdateResponse) => {
const channelClaim = result.outputs[0];