Update queue-worker.ts

This commit is contained in:
Nicolas 2025-05-15 19:11:58 -03:00 committed by GitHub
parent 47f28c231d
commit 2ac1017538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1366,7 +1366,7 @@ async function processJob(job: Job & { id: string }, token: string) {
creditsToBeBilled = 150;
}
} else if (doc.metadata.numPages !== undefined && doc.metadata.numPages > 1) {
const creditsPerPDFPage = 5;
const creditsPerPDFPage = 1;
creditsToBeBilled = creditsPerPDFPage * doc.metadata.numPages;
}