1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-08-04 05:11:58 +00:00

fix: error while compiling on Windows (#846)

This commit is contained in:
2025-08-01 14:50:54 +02:00
committed by GitHub
parent dc26879060
commit cfef533c75
5 changed files with 14 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ import { exec, spawn } from 'node:child_process'
import { writeFileSync } from 'node:fs'
import { Card, Languages, Set, SupportedLanguages } from '../../../interfaces'
import * as legals from '../../../meta/legals'
interface fileCacheInterface {
[key: string]: any
}
@@ -140,7 +139,8 @@ export async function loadLastEdits() {
console.log('Loaded files tree', files.length, 'files')
console.log('Loading their last edit time')
let processed = 0
const queue = new Queue(1000, 10)
const concurrent = process.platform === 'win32' ? 10 : 1000
const queue = new Queue(concurrent, 10)
queue.start()
for await (let file of files) {