pass languages in channel create
This commit is contained in:
parent
dc70da1be2
commit
c86810038c
2 changed files with 7 additions and 0 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -3471,6 +3471,9 @@ function doCreateChannel(name, amount, optionalParams, cb) {
|
||||||
if (optionalParams.tags) {
|
if (optionalParams.tags) {
|
||||||
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
||||||
}
|
}
|
||||||
|
if (optionalParams.languages) {
|
||||||
|
createParams.languages = optionalParams.languages;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lbryProxy.channel_create(createParams)
|
return lbryProxy.channel_create(createParams)
|
||||||
|
|
|
@ -362,6 +362,7 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
|
||||||
website_url?: string,
|
website_url?: string,
|
||||||
email?: string,
|
email?: string,
|
||||||
tags?: Array<string>,
|
tags?: Array<string>,
|
||||||
|
languages?: Array<string>,
|
||||||
} = {
|
} = {
|
||||||
name,
|
name,
|
||||||
bid: creditsToString(amount),
|
bid: creditsToString(amount),
|
||||||
|
@ -390,6 +391,9 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
|
||||||
if (optionalParams.tags) {
|
if (optionalParams.tags) {
|
||||||
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
||||||
}
|
}
|
||||||
|
if (optionalParams.languages) {
|
||||||
|
createParams.languages = optionalParams.languages;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue