File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Minio-SQL-connector/api/services Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,12 @@ async function sync() {
7676 minioWriter . entities . uniqueEntries = [ ]
7777
7878 for ( let obj of objects )
79- await minioWriter . insertInDBs ( obj . raw , obj . info , true )
79+ try {
80+ await minioWriter . insertInDBs ( obj . raw , obj . info , true )
81+ }
82+ catch ( error ) {
83+ logger . error ( error )
84+ }
8085
8186 //minioWriter.entities.values = minioWriter.entities.values.map(obj => ({ ...obj, visibility: getVisibility(obj) }))
8287 //minioWriter.entities.keys = minioWriter.entities.keys.map(obj => ({ ...obj, visibility: getVisibility(obj) }))
@@ -200,6 +205,7 @@ async function sync() {
200205 }
201206 syncing = false
202207 logger . info ( "Syncing finished" )
208+ console . info ( "Syncing finished" )
203209 return "Sync finished"
204210 }
205211 else {
You can’t perform that action at this time.
0 commit comments