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

View file

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