docker registry: fix typo in eventlog

This commit is contained in:
Girish Ramakrishnan
2025-09-10 17:45:52 +02:00
parent acaf7cd934
commit 60a3ea0cea
+1 -1
View File
@@ -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) {