From 6e67bdc19ec16f757617a6fd6c7fab45f042649f Mon Sep 17 00:00:00 2001 From: ozer550 Date: Tue, 28 Mar 2023 22:24:44 +0530 Subject: [PATCH] Add user id to change object --- .../contentcuration/frontend/shared/data/resources.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contentcuration/contentcuration/frontend/shared/data/resources.js b/contentcuration/contentcuration/frontend/shared/data/resources.js index ac51f15330..37ff71da79 100644 --- a/contentcuration/contentcuration/frontend/shared/data/resources.js +++ b/contentcuration/contentcuration/frontend/shared/data/resources.js @@ -1546,6 +1546,11 @@ export const ContentNode = new TreeResource({ export const ChannelSet = new Resource({ tableName: TABLE_NAMES.CHANNELSET, urlName: 'channelset', + setUserIdOnChange(change) { + if (vuexStore) { + change.user_id = vuexStore.getters.currentUserId; + } + }, }); export const Invitation = new Resource({