aboutsummaryrefslogtreecommitdiffstats
path: root/tools/compare-models/src/apiClient.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/compare-models/src/apiClient.ts')
-rw-r--r--tools/compare-models/src/apiClient.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/compare-models/src/apiClient.ts b/tools/compare-models/src/apiClient.ts
index f3a960cb..1d9f799d 100644
--- a/tools/compare-models/src/apiClient.ts
+++ b/tools/compare-models/src/apiClient.ts
@@ -53,7 +53,13 @@ export class KarakeepAPIClient {
const batchBookmarks = (data?.bookmarks || [])
.filter((b) => b.content?.type === "link")
- .map((b) => b as Bookmark);
+ .map((b) => ({
+ ...b,
+ tags: (b.tags || []).map((tag) => ({
+ name: tag.name,
+ attachedBy: tag.attachedBy,
+ })),
+ })) as Bookmark[];
bookmarks.push(...batchBookmarks);
cursor = data?.nextCursor || null;