1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-22 10:52:10 +00:00

fix: variable not found

This commit is contained in:
Florian Bouillon 2024-12-10 13:47:43 +01:00 committed by GitHub
parent a8f8b29340
commit 0616b98038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ if (cluster.isPrimary) {
// allow to override max worker count
if (process.env.MAX_WORKERS) {
maxWorkers = Math.min(parallelism, parseInt(process.env.MAX_WORKERS))
maxWorkers = Math.min(maxWorkers, parseInt(process.env.MAX_WORKERS))
}
// create the workers