This commit is contained in:
seb
2026-10-16 01:25:00 +02:00
parent 9a4e2e30df
commit 084b1b285e
2 changed files with 4 additions and 4 deletions

View File

@@ -47,9 +47,9 @@ const log = createLogger('import');
* @param {number} opts.googleAuthId
* @param {number} opts.companyId
* @param {string} opts.importDir
* @param {function} [opts.onProgress] - (counts) => void; throttled to 50ms
* @param {function} [opts.onProgress] - (counts) => void; throttled to 250ms
* @param {function} [opts.onImages] - (skelehashes: string[]) => void; batched every 50ms
* @param {number} [opts.progressThrottleMs=50] - Progress emission throttle/debounce interval in ms
* @param {number} [opts.progressThrottleMs=250] - Progress emission throttle/debounce interval in ms
* @returns {Promise<object>} Summary outcome with statistics
*/
export async function executeCompanyImport({
@@ -58,7 +58,7 @@ export async function executeCompanyImport({
importDir,
onProgress = () => {},
onImages = () => {},
progressThrottleMs = 50,
progressThrottleMs = 250,
}) {
const store = await getStore();

View File

@@ -16,7 +16,7 @@ export function createProgressTracker({
initialCounts,
onProgress = () => {},
onImages = () => {},
progressThrottleMs = 50,
progressThrottleMs = 250,
imageBatchMs = 50,
}) {
const counts = {