Merge pull request #168 from lbryio/channelUpdateTags

add tags to doUpdateChannel
This commit is contained in:
Sean Yesmunt 2019-07-21 16:47:41 -04:00 committed by GitHub
commit 465647e802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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];