fix(fs): use correct arg name for unwatch (#857)

* fix(fs): use correct arg name for unwatch

* fmt
This commit is contained in:
Amr Bashir
2023-12-28 11:18:44 +01:00
committed by GitHub
parent 85f8419682
commit 2e2fc8de69
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fs-js": "patch"
---
Fix `invalid args id for command unwatch` error when trying to unwatch a previously watched file or directory.
+2 -2
View File
@@ -1135,8 +1135,8 @@ type DebouncedEvent =
*/ */
type UnwatchFn = () => void; type UnwatchFn = () => void;
async function unwatch(id: number): Promise<void> { async function unwatch(rid: number): Promise<void> {
await invoke("plugin:fs|unwatch", { id }); await invoke("plugin:fs|unwatch", { rid });
} }
/** /**
File diff suppressed because one or more lines are too long