Merge pull request #366 from linkwarden/dev

bugs fixed
This commit is contained in:
Daniel 2023-12-27 19:44:32 -05:00 committed by GitHub
commit 9cfdb714c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
await page.goBack();
} else if (!link.preview?.startsWith("archive")) {
console.log("No og:image found");
page
await page
.screenshot({ type: "jpeg", quality: 20 })
.then((screenshot) => {
return createFile({

View File

@ -88,7 +88,7 @@ async function migrateToV2() {
if (res) {
await prisma.link.update({
where: { id: link.id },
data: { pdfPath: path },
data: { pdf: path },
});
console.log(`${link.id}`);
} else {
@ -105,7 +105,7 @@ async function migrateToV2() {
if (res) {
await prisma.link.update({
where: { id: link.id },
data: { screenshotPath: path },
data: { image: path },
});
console.log(`${link.id}`);
} else {