use monolith instead of singlefile

This commit is contained in:
daniel31x13
2024-06-27 21:58:07 -04:00
parent 5b8e1d53cc
commit a71f42af6e
25 changed files with 90 additions and 88 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ const handleMonolith = async (link: Link, content: string) => {
);
if (!html?.length) {
console.error("Error running SINGLEFILE_ARCHIVE_COMMAND: Empty buffer");
console.error("Error running MONOLITH: Empty buffer");
return;
}
@@ -30,12 +30,12 @@ const handleMonolith = async (link: Link, content: string) => {
await prisma.link.update({
where: { id: link.id },
data: {
singlefile: `archives/${link.collectionId}/${link.id}.html`,
monolith: `archives/${link.collectionId}/${link.id}.html`,
},
});
});
} catch (err) {
console.error("Error running SINGLEFILE_ARCHIVE_COMMAND:", err);
console.error("Error running MONOLITH:", err);
}
};