aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/exportBookmarks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/lib/exportBookmarks.ts')
-rw-r--r--apps/web/lib/exportBookmarks.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/lib/exportBookmarks.ts b/apps/web/lib/exportBookmarks.ts
index 67b0b5da..5dc26e78 100644
--- a/apps/web/lib/exportBookmarks.ts
+++ b/apps/web/lib/exportBookmarks.ts
@@ -19,6 +19,7 @@ export const zExportBookmarkSchema = z.object({
])
.nullable(),
note: z.string().nullable(),
+ archived: z.boolean().optional().default(false),
});
export const zExportSchema = z.object({
@@ -56,6 +57,7 @@ export function toExportFormat(
tags: bookmark.tags.map((t) => t.name),
content,
note: bookmark.note ?? null,
+ archived: bookmark.archived,
};
}