mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 16:40:30 +00:00
adjustment: updated to use project slug
This commit is contained in:
@@ -196,10 +196,10 @@ export const useUpdateFolderBatch = () => {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return useMutation<{}, {}, TUpdateFolderBatchDTO>({
|
||||
mutationFn: async ({ projectId, folders }) => {
|
||||
mutationFn: async ({ projectSlug, folders }) => {
|
||||
const { data } = await apiRequest.patch("/api/v1/folders/batch", {
|
||||
folders,
|
||||
workspaceId: projectId
|
||||
projectSlug,
|
||||
folders
|
||||
});
|
||||
|
||||
return data;
|
||||
|
||||
@@ -39,6 +39,7 @@ export type TDeleteFolderDTO = {
|
||||
|
||||
export type TUpdateFolderBatchDTO = {
|
||||
projectId: string;
|
||||
projectSlug: string;
|
||||
folders: {
|
||||
name: string;
|
||||
environment: string;
|
||||
|
||||
@@ -278,8 +278,9 @@ export const SecretOverviewPage = () => {
|
||||
|
||||
try {
|
||||
await updateFolderBatch({
|
||||
projectId: workspaceId,
|
||||
folders: updatedFolders
|
||||
projectSlug,
|
||||
folders: updatedFolders,
|
||||
projectId: workspaceId
|
||||
});
|
||||
createNotification({
|
||||
type: "success",
|
||||
|
||||
Reference in New Issue
Block a user