Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fixed

daniel31x13b0f87e8659bc
diff --git a/pages/api/v1/archives/[linkId].ts b/pages/api/v1/archives/[linkId].ts
index d8859b7f..21205103 100644
--- a/pages/api/v1/archives/[linkId].ts
+++ b/pages/api/v1/archives/[linkId].ts
@@ -282,7 +282,7 @@ export default async function Index(req: NextApiRequest, res: NextApiResponse) {
filePath: `archives/preview/${collectionId}`,
});
- generatePreview(fileBuffer, collectionId, linkId);
+ await generatePreview(fileBuffer, collectionId, linkId);
}
fs.unlinkSync(files.file[0].filepath);