From 15612253d4fb87c38dced53334357508ababa5f3 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Wed, 12 Oct 2022 11:00:39 -0700 Subject: [PATCH] Reset new/updated descendant flag on publish --- .../contentcuration/frontend/shared/data/resources.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/frontend/shared/data/resources.js b/contentcuration/contentcuration/frontend/shared/data/resources.js index f828bf9a37..e83b686384 100644 --- a/contentcuration/contentcuration/frontend/shared/data/resources.js +++ b/contentcuration/contentcuration/frontend/shared/data/resources.js @@ -1036,7 +1036,12 @@ export const Channel = new Resource({ () => { return Promise.all([ db[CHANGES_TABLE].put(change), - ContentNode.table.where({ channel_id: id }).modify({ changed: false, published: true }), + ContentNode.table.where({ channel_id: id }).modify({ + changed: false, + published: true, + has_new_descendants: false, + has_updated_descendants: false, + }), ]); } );