fix: resolved v2 secret update bug and object returning in import secret empty

This commit is contained in:
akhilmhdh
2023-07-27 16:29:43 +05:30
parent d458bd7948
commit b6b3c8a736
7 changed files with 77 additions and 3 deletions
+2
View File
@@ -346,6 +346,7 @@ export const createSecretHelper = async ({
workspace: new Types.ObjectId(workspaceId),
folder: folderId,
type,
environment,
...(type === SECRET_PERSONAL ? getAuthDataPayloadUserObj(authData) : {})
});
@@ -362,6 +363,7 @@ export const createSecretHelper = async ({
secretBlindIndex,
folder: folderId,
workspace: new Types.ObjectId(workspaceId),
environment,
type: SECRET_SHARED
});