moved improvements

This commit is contained in:
subnub
2024-08-04 03:51:56 -04:00
parent c648b9bfc6
commit f0c2bbd42d
8 changed files with 116 additions and 49 deletions
+6 -2
View File
@@ -39,14 +39,18 @@ export const getFolderInfoAPI = async ({
export const getMoveFolderListAPI = async ({
queryKey,
}: QueryFunctionContext<
[string, { parent: string; search: string; folderID?: string }]
[
string,
{ parent: string; search: string; folderID?: string; currentParent: string }
]
>) => {
const [_key, { parent, search, folderID }] = queryKey;
const [_key, { parent, search, folderID, currentParent }] = queryKey;
const response = await axios.get(`/folder-service/move-folder-list`, {
params: {
parent,
search,
folderID,
currentParent,
},
});
return response.data;