Merge pull request #897 from akhilmhdh/fix/sec-v3-fail

fix: moved backend get sec to v2 for dashboard
This commit is contained in:
Maidul Islam
2023-08-25 12:09:04 -04:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ const fetchProjectEncryptedSecrets = async (
folderId?: string,
secretPath?: string
) => {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v3/secrets", {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v2/secrets", {
params: {
environment: env,
workspaceId,
@@ -345,4 +345,4 @@ export const useCreateSecret = () => {
);
}
});
};
};