Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(cli): respect attachedBy when migrating tags. fixes #2273

Mohamed Bassem462d713fc9b6
diff --git a/apps/cli/src/commands/migrate.ts b/apps/cli/src/commands/migrate.ts
index 6527be23..8e25acda 100644
--- a/apps/cli/src/commands/migrate.ts
+++ b/apps/cli/src/commands/migrate.ts
@@ -790,7 +790,10 @@ async function migrateBookmarks(
if (b.tags.length > 0) {
await dest.bookmarks.updateTags.mutate({
bookmarkId: createdId!,
- attach: b.tags.map((t) => ({ tagName: t.name })),
+ attach: b.tags.map((t) => ({
+ tagName: t.name,
+ attachedBy: t.attachedBy,
+ })),
detach: [],
});
}