move multiple files at once
This commit is contained in:
@@ -382,9 +382,9 @@ export async function fetchFileStream(
|
||||
};
|
||||
}
|
||||
|
||||
export async function moveFile(
|
||||
export async function moveFiles(
|
||||
warrenId: string,
|
||||
currentPath: string,
|
||||
currentPaths: string[],
|
||||
targetPath: string
|
||||
): Promise<{ success: boolean }> {
|
||||
const { status } = await useFetch(getApiUrl(`warrens/files/mv`), {
|
||||
@@ -392,7 +392,7 @@ export async function moveFile(
|
||||
headers: getApiHeaders(),
|
||||
body: JSON.stringify({
|
||||
warrenId,
|
||||
path: currentPath,
|
||||
paths: currentPaths,
|
||||
targetPath: targetPath,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user