added seed script + renamed table fields + added field

This commit is contained in:
daniel31x13
2023-12-22 13:13:43 -05:00
parent 385bdc2343
commit 98106b9f25
15 changed files with 957 additions and 370 deletions
+7 -10
View File
@@ -1,26 +1,23 @@
export function screenshotAvailable(link: any) {
return (
link &&
link.screenshotPath &&
link.screenshotPath !== "pending" &&
link.screenshotPath !== "unavailable"
link.image &&
link.image !== "pending" &&
link.image !== "unavailable"
);
}
export function pdfAvailable(link: any) {
return (
link &&
link.pdfPath &&
link.pdfPath !== "pending" &&
link.pdfPath !== "unavailable"
link && link.pdf && link.pdf !== "pending" && link.pdf !== "unavailable"
);
}
export function readabilityAvailable(link: any) {
return (
link &&
link.readabilityPath &&
link.readabilityPath !== "pending" &&
link.readabilityPath !== "unavailable"
link.readable &&
link.readable !== "pending" &&
link.readable !== "unavailable"
);
}