diff --git a/src/dockerregistries.js b/src/dockerregistries.js index 6f805bd6a..201e17e93 100644 --- a/src/dockerregistries.js +++ b/src/dockerregistries.js @@ -109,7 +109,7 @@ async function update(oldConfig, newConfig, auditSource) { const result = await database.query('UPDATE dockerRegistries SET ' + fields.join(', ') + ' WHERE id=?', args); if (result.affectedRows === 0) throw new BoxError(BoxError.NOT_FOUND, 'Registry not found'); - await eventlog.add(eventlog.ACTION_REGISTRY_DEL, auditSource, { oldRegistry: removePrivateFields(oldConfig), newRegistry: removePrivateFields(newConfig) }); + await eventlog.add(eventlog.ACTION_REGISTRY_UPDATE, auditSource, { oldRegistry: removePrivateFields(oldConfig), newRegistry: removePrivateFields(newConfig) }); } async function del(registry, auditSource) {