Skip to content

Commit f889efe

Browse files
committed
add importedFromRid to imported node schemata
1 parent 0cbdd51 commit f889efe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/obsidian/src/utils/importNodes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,13 @@ const mapNodeTypeIdToLocal = async ({
972972
plugin,
973973
client,
974974
sourceSpaceId,
975+
sourceSpaceUri,
975976
sourceNodeTypeId,
976977
}: {
977978
plugin: DiscourseGraphPlugin;
978979
client: DGSupabaseClient;
979980
sourceSpaceId: number;
981+
sourceSpaceUri: string;
980982
sourceNodeTypeId: string;
981983
}): Promise<string> => {
982984
// Find the schema in the source space with this nodeTypeId (my_concepts applies RLS)
@@ -1028,6 +1030,7 @@ const mapNodeTypeIdToLocal = async ({
10281030
keyImage: parsed.keyImage,
10291031
created: now,
10301032
modified: now,
1033+
importedFromRid: `${sourceSpaceUri}/${sourceNodeTypeId}`,
10311034
};
10321035
plugin.settings.nodeTypes = [...plugin.settings.nodeTypes, newNodeType];
10331036
await plugin.saveSettings();
@@ -1089,6 +1092,7 @@ const processFileContent = async ({
10891092
plugin,
10901093
client,
10911094
sourceSpaceId,
1095+
sourceSpaceUri,
10921096
sourceNodeTypeId,
10931097
});
10941098

0 commit comments

Comments
 (0)