Skip to content

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

Small change.

Daniel32cb7e80c831
diff --git a/api/modules/getData.js b/api/modules/getData.js
index e58a20b4..dc0476e2 100644
--- a/api/modules/getData.js
+++ b/api/modules/getData.js
@@ -25,11 +25,8 @@ module.exports = async (link, id) => {
await page.goto(link, { waitUntil: 'load', timeout: 0 });
- const title = await page.title();
await page.screenshot({ path: screenshotDirectory + id + '.png', fullPage: true});
await page.pdf({ path: pdfDirectory + id + '.pdf', format: 'a4' });
await browser.close();
-
- return title;
}
diff --git a/api/server.js b/api/server.js
index 568ea1c1..553025dd 100644
--- a/api/server.js
+++ b/api/server.js
@@ -52,8 +52,7 @@ app.post('/api', async (req, res) => {
await insertDoc(req.body);
res.send("DONE!");
-
- const dataResult = await getData(pageToVisit, req.body._id);
+ getData(pageToVisit, req.body._id);
} catch (err) {
console.log(err);
insertDoc(req.body);