add tags to doUpdateChannel
This commit is contained in:
parent
755424a2a8
commit
b07dfa172a
2 changed files with 15 additions and 1 deletions
9
dist/bundle.es.js
vendored
9
dist/bundle.es.js
vendored
|
@ -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({
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue