pass channel_id on list update

This commit is contained in:
zeppi 2021-09-13 11:51:18 -04:00 committed by jessopb
parent 129b0ea3fa
commit 32b5787071
2 changed files with 29 additions and 19 deletions

4
dist/bundle.es.js vendored
View file

@ -4535,6 +4535,10 @@ function doCollectionPublishUpdate(options, isBackgroundUpdate) {
updateParams['tags'] = options.tags.map(tag => tag.name);
}
if (options.channel_id) {
updateParams['channel_id'] = options.channel_id;
}
return new Promise(resolve => {
dispatch({
type: COLLECTION_PUBLISH_UPDATE_STARTED

View file

@ -842,6 +842,7 @@ export function doCollectionPublishUpdate(
tags?: Array<Tag>,
languages?: Array<string>,
claims?: Array<string>,
channel_id?: string,
},
isBackgroundUpdate?: boolean
) {
@ -853,13 +854,14 @@ export function doCollectionPublishUpdate(
blocking?: true,
title?: string,
thumbnail_url?: string,
channel_id?: string,
description?: string,
claim_id: string,
tags?: Array<string>,
languages?: Array<string>,
claims?: Array<string>,
clear_claims: boolean,
replace: boolean,
replace?: boolean,
} = isBackgroundUpdate
? {
blocking: true,
@ -891,6 +893,10 @@ export function doCollectionPublishUpdate(
updateParams['tags'] = options.tags.map(tag => tag.name);
}
if (options.channel_id) {
updateParams['channel_id'] = options.channel_id;
}
return new Promise(resolve => {
dispatch({
type: ACTIONS.COLLECTION_PUBLISH_UPDATE_STARTED,