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) {
|
||||
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
||||
}
|
||||
if (optionalParams.languages) {
|
||||
createParams.languages = optionalParams.languages;
|
||||
}
|
||||
}
|
||||
|
||||
return lbryProxy.channel_create(createParams)
|
||||
|
|
|
@ -362,6 +362,7 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
|
|||
website_url?: string,
|
||||
email?: string,
|
||||
tags?: Array<string>,
|
||||
languages?: Array<string>,
|
||||
} = {
|
||||
name,
|
||||
bid: creditsToString(amount),
|
||||
|
@ -390,6 +391,9 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
|
|||
if (optionalParams.tags) {
|
||||
createParams.tags = optionalParams.tags.map(tag => tag.name);
|
||||
}
|
||||
if (optionalParams.languages) {
|
||||
createParams.languages = optionalParams.languages;
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue