pass languages in channel create

This commit is contained in:
jessop 2020-11-06 09:59:12 -05:00 committed by Sean Yesmunt
parent dc70da1be2
commit c86810038c
2 changed files with 7 additions and 0 deletions

3
dist/bundle.es.js vendored
View file

@ -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)

View file

@ -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 (