finalized archiveHandler/background worker logic

This commit is contained in:
daniel31x13
2023-12-13 17:32:01 -05:00
parent a001f70b9d
commit b74ff01ce6
13 changed files with 292 additions and 403 deletions
+3 -5
View File
@@ -1,11 +1,9 @@
import { Link } from "@prisma/client";
export function screenshotAvailable(link: any) {
return (
link &&
link.screenshotPath &&
link.screenshotPath !== "pending" &&
link.screenshotPath !== "failed"
link.screenshotPath !== "unavailable"
);
}
@@ -14,7 +12,7 @@ export function pdfAvailable(link: any) {
link &&
link.pdfPath &&
link.pdfPath !== "pending" &&
link.pdfPath !== "failed"
link.pdfPath !== "unavailable"
);
}
@@ -23,6 +21,6 @@ export function readabilityAvailable(link: any) {
link &&
link.readabilityPath &&
link.readabilityPath !== "pending" &&
link.readabilityPath !== "failed"
link.readabilityPath !== "unavailable"
);
}