Skip to content

Commit 5e40691

Browse files
committed
Do a sync on publish
1 parent 7128ea4 commit 5e40691

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/obsidian/src/utils/publishNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export const publishNode = async ({
260260
if (!client) throw new Error("Cannot get client");
261261
const myGroups = new Set(await getAvailableGroupIds(client));
262262
if (myGroups.size === 0) throw new Error("Cannot get group");
263+
await syncAllNodesAndRelations(plugin);
263264
const existingPublish =
264265
(frontmatter.publishedToGroups as undefined | string[]) || [];
265266
const commonGroups = existingPublish.filter((g) => myGroups.has(g));

0 commit comments

Comments
 (0)