feat: Add credential update and delete events to log streaming (#9026)

This commit is contained in:
Val
2024-04-08 08:13:39 +01:00
committed by GitHub
parent 7467aa30e6
commit f4f0a36fe1
5 changed files with 84 additions and 2 deletions

View File

@@ -252,6 +252,13 @@ export class CredentialsController {
this.logger.verbose('Credential updated', { credentialId });
void this.internalHooks.onUserUpdatedCredentials({
user: req.user,
credential_name: credential.name,
credential_type: credential.type,
credential_id: credential.id,
});
return { ...rest };
}
@@ -291,6 +298,13 @@ export class CredentialsController {
await this.credentialsService.delete(credential);
void this.internalHooks.onUserDeletedCredentials({
user: req.user,
credential_name: credential.name,
credential_type: credential.type,
credential_id: credential.id,
});
return true;
}