u
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user