fix(watcher): fix path for watcher
This commit is contained in:
parent
6bcf654ffc
commit
de74585eee
@ -355,7 +355,7 @@ async fn run_file_watcher(state: AppState) {
|
||||
)
|
||||
.expect("Failed to create watcher");
|
||||
|
||||
let watch_path = PathBuf::from("./notes");
|
||||
let watch_path = PathBuf::from(state.root);
|
||||
if let Err(e) = watcher.watch(&watch_path, RecursiveMode::Recursive) {
|
||||
eprintln!("Ошибка настройки watcher: {e}");
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user