more efficient logic for the background script
This commit is contained in:
@@ -19,36 +19,16 @@ async function processBatch() {
|
||||
url: { not: null },
|
||||
OR: [
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsScreenshot: true,
|
||||
},
|
||||
},
|
||||
image: null,
|
||||
},
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsScreenshot: true,
|
||||
},
|
||||
},
|
||||
image: "pending",
|
||||
},
|
||||
///////////////////////
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsPDF: true,
|
||||
},
|
||||
},
|
||||
pdf: null,
|
||||
},
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsPDF: true,
|
||||
},
|
||||
},
|
||||
pdf: "pending",
|
||||
},
|
||||
///////////////////////
|
||||
@@ -76,36 +56,16 @@ async function processBatch() {
|
||||
url: { not: null },
|
||||
OR: [
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsScreenshot: true,
|
||||
},
|
||||
},
|
||||
image: null,
|
||||
},
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsScreenshot: true,
|
||||
},
|
||||
},
|
||||
image: "pending",
|
||||
},
|
||||
///////////////////////
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsPDF: true,
|
||||
},
|
||||
},
|
||||
pdf: null,
|
||||
},
|
||||
{
|
||||
collection: {
|
||||
owner: {
|
||||
archiveAsPDF: true,
|
||||
},
|
||||
},
|
||||
pdf: "pending",
|
||||
},
|
||||
///////////////////////
|
||||
@@ -115,13 +75,6 @@ async function processBatch() {
|
||||
{
|
||||
readable: "pending",
|
||||
},
|
||||
///////////////////////
|
||||
{
|
||||
preview: null,
|
||||
},
|
||||
{
|
||||
preview: "pending",
|
||||
},
|
||||
],
|
||||
},
|
||||
take: archiveTakeCount,
|
||||
|
||||
Reference in New Issue
Block a user