Skip to content

Commit 4ee95ff

Browse files
committed
fix bug
1 parent 5189230 commit 4ee95ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Minio-SQL-connector/api/services/service.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)