Skip to content

Commit 3cb6d58

Browse files
committed
Fixed ci pipeline
1 parent a909f8b commit 3cb6d58

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

backend/tests/integration/test_routes/test_file_upload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from pathlib import Path
21
import pytest
32

43

frontend/src/routes/debug/file_drag.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function DropZone({ children }: { children?: React.ReactNode }) {
2828
setIsOverWindow(false);
2929
}, []);
3030

31-
const { mutate, status, isPending } = useMutation(fileUploadMutationOptions);
31+
const { mutate } = useMutation(fileUploadMutationOptions);
3232

3333
useEffect(() => {
3434
if (!ref.current) return;
@@ -49,7 +49,11 @@ function DropZone({ children }: { children?: React.ReactNode }) {
4949
const files = event.dataTransfer?.files;
5050
if (files && files.length > 0) {
5151
console.log("Dropped files:", files);
52-
mutate({ file: files[0], targetDir: "/music/upload/" }); // Upload the first file only
52+
mutate({
53+
files: files,
54+
targetDir: "/music/upload/",
55+
setProgress: () => {},
56+
}); // Upload all files
5357
}
5458
};
5559

0 commit comments

Comments
 (0)