Skip to content

Commit eb1fd8a

Browse files
committed
address devin comment
1 parent e98c602 commit eb1fd8a

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

apps/obsidian/src/utils/syncDgNodesToSupabase.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -565,17 +565,18 @@ const convertDgToSupabaseConcepts = async ({
565565
? error
566566
: JSON.stringify(error, null, 2);
567567
throw new Error(`upsert_concepts failed: ${errorMessage}`);
568-
} else if (startupRun === true) {
569-
// occasional extra work: Make sure relations that should be published are.
570-
await ensurePublishedRelationsAccuracy({
571-
client: supabaseClient,
572-
context,
573-
plugin,
574-
allNodesById,
575-
relationInstancesData,
576-
});
577568
}
578569
}
570+
if (startupRun === true) {
571+
// occasional extra work: Make sure relations that should be published are.
572+
await ensurePublishedRelationsAccuracy({
573+
client: supabaseClient,
574+
context,
575+
plugin,
576+
allNodesById,
577+
relationInstancesData,
578+
});
579+
}
579580
};
580581

581582
/**

0 commit comments

Comments
 (0)