docker registry: fix typo in eventlog
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user