Skip to content

Commit

Permalink
Clean unecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Jan 2, 2023
1 parent 0294431 commit 1c2a43c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion backend/src/ee/helpers/secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const initSecretVersioningHelper = async () => {
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);
throw new Error('Failed to ensure secrets are versioned');
throw new Error('Failed to ensure that secrets are versioned');
}
}

Expand Down
11 changes: 0 additions & 11 deletions backend/src/helpers/secret.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as Sentry from '@sentry/node';
import { Types } from 'mongoose';
import {
Secret,
ISecret,
Expand All @@ -10,13 +9,8 @@ import {
} from '../ee/services';
import {
SecretVersion,
Action,
IAction
} from '../ee/models';
import {
takeSecretSnapshotHelper
} from '../ee/helpers/secret';
import { decryptSymmetric } from '../utils/crypto';
import {
SECRET_SHARED,
SECRET_PERSONAL,
Expand Down Expand Up @@ -62,8 +56,6 @@ interface Update {
[index: string]: any;
}

type DecryptSecretType = 'text' | 'object' | 'expanded';

/**
* Push secrets for user with id [userId] to workspace
* with id [workspaceId] with environment [environment]. Follow steps:
Expand Down Expand Up @@ -285,9 +277,6 @@ const v1PushSecrets = async ({
}
};

// TODO: optimize this route.
// TODO: ensure that it's possible to query for and filter logs

/**
* Push secrets for user with id [userId] to workspace
* with id [workspaceId] with environment [environment]. Follow steps:
Expand Down

0 comments on commit 1c2a43c

Please sign in to comment.