Logs insert: on conflict do nothing

This commit is contained in:
goga-m 2017-11-13 16:04:09 +02:00 committed by Josh Harvey
parent d901a36f29
commit e998e84cca

View file

@ -52,7 +52,7 @@ function update (deviceId, logLines) {
}
return _.mapKeys(_.snakeCase, formatted)
}, logLines)
const sql = pgp.helpers.insert(logs, cs)
const sql = pgp.helpers.insert(logs, cs) + 'on conflict do nothing'
return db.none(sql)
}