fix(flash-transfer): finish seconds-pass flash uploads

A fileset that already exists on the server still needs the apply step
so the share is not left waiting for upload.

Fixes #420
This commit is contained in:
DrSmoothl committed 2026-08-26 23:14:35 +08:00
1 parent d474996485
commit ef73157c68
3 files changed
+9 -6

No files matched your search

@@ -196,7 +196,9 @@ describe('FlashTransferApi.createFlashTask — disk streaming (#359)', () => {
await api().createFlashTask(file);
expect(mainSlices(slices)).toHaveLength(0);
expect(ApplyUpload.invoke).toHaveBeenCalled(); // thumbs still apply
expect(ApplyUpload.invoke).toHaveBeenCalledWith(expect.anything(), expect.objectContaining({
fileName: 'hit.mp4',
}));
expect(SetFilesetStatus.invoke).toHaveBeenCalled();
});