From e902a54af03672c1fbcd35bf9050a8e3069ab470 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 26 Sep 2023 23:35:45 -0700 Subject: [PATCH] remove deprecated EELogService --- backend/src/helpers/secrets.ts | 51 ---------------------------------- 1 file changed, 51 deletions(-) diff --git a/backend/src/helpers/secrets.ts b/backend/src/helpers/secrets.ts index ca90fefe8..4182be9dc 100644 --- a/backend/src/helpers/secrets.ts +++ b/backend/src/helpers/secrets.ts @@ -1375,23 +1375,6 @@ export const createSecretBatchHelper = async ({ ) }); - // (EE) create (audit) log - const action = await EELogService.createAction({ - name: ACTION_ADD_SECRETS, - ...getAuthDataPayloadIdObj(authData), - workspaceId, - secretIds: newlyCreatedSecrets.map((n) => n._id) - }); - - action && - (await EELogService.createLog({ - ...getAuthDataPayloadIdObj(authData), - workspaceId, - actions: [action], - channel: authData.userAgentType, - ipAddress: authData.ipAddress - })); - await EEAuditLogService.createAuditLog( authData, { @@ -1587,23 +1570,6 @@ export const updateSecretBatchHelper = async ({ }) }); - // (EE) create (audit) log - const action = await EELogService.createAction({ - name: ACTION_UPDATE_SECRETS, - ...getAuthDataPayloadIdObj(authData), - workspaceId, - secretIds: secretsToBeUpdated.map(({ _id }) => _id) - }); - - action && - (await EELogService.createLog({ - ...getAuthDataPayloadIdObj(authData), - workspaceId, - actions: [action], - channel: authData.userAgentType, - ipAddress: authData.ipAddress - })); - await EEAuditLogService.createAuditLog( authData, { @@ -1727,23 +1693,6 @@ export const deleteSecretBatchHelper = async ({ secretIds: deletedSecrets.map((secret) => secret._id) }); - // (EE) create (audit) log - 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( authData, {