This commit is contained in:
seb
2026-10-10 18:17:41 +02:00
parent 29057e8d7d
commit 47c61c9f2a
2 changed files with 182 additions and 72 deletions

View File

@@ -568,11 +568,11 @@ export function register(app, basePath = '') {
googleAuthId: req.user.id,
companyId,
importDir,
onProgress: (phase, current, total, item) => {
sseWrite('progress', { phase, current, total, item });
onProgress: (counts) => {
sseWrite('progress', counts);
},
onImage: (imageData) => {
sseWrite('image', imageData);
onImages: (skelehashes) => {
sseWrite('images', skelehashes);
},
});
@@ -589,8 +589,8 @@ export function register(app, basePath = '') {
googleAuthId: req.user.id,
companyId,
importDir,
onProgress: (phase, current, total, item) => {
console.log(`[Import Progress] [${phase}] ${current}/${total} - ${item}`);
onProgress: (counts) => {
console.log('[Import Progress]', counts);
},
});