mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
chore: add logs
This commit is contained in:
@@ -1761,6 +1761,22 @@ export const deleteSecretBatchHelper = async ({
|
|||||||
secretIds: deletedSecrets.map((secret) => secret._id)
|
secretIds: deletedSecrets.map((secret) => secret._id)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const action = await EELogService.createAction({
|
||||||
|
name: ACTION_DELETE_SECRETS,
|
||||||
|
...getAuthDataPayloadIdObj(authData),
|
||||||
|
workspaceId,
|
||||||
|
secretIds: deletedSecrets.map((secret) => secret._id)
|
||||||
|
});
|
||||||
|
|
||||||
|
action &&
|
||||||
|
(await EELogService.createLog({
|
||||||
|
...getAuthDataPayloadIdObj(authData),
|
||||||
|
workspaceId,
|
||||||
|
actions: [action],
|
||||||
|
channel: authData.userAgentType,
|
||||||
|
ipAddress: authData.ipAddress
|
||||||
|
}));
|
||||||
|
|
||||||
await EEAuditLogService.createAuditLog(
|
await EEAuditLogService.createAuditLog(
|
||||||
authData,
|
authData,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user