From a696109b62c0553c737ecaddc473d6f44840955b Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 18 Jul 2020 13:41:40 +0700 Subject: [PATCH] Watch for bisq dump recursively. --- backend/src/api/bisq.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/bisq.ts b/backend/src/api/bisq.ts index 34bc7eb49..74128ce37 100644 --- a/backend/src/api/bisq.ts +++ b/backend/src/api/bisq.ts @@ -27,7 +27,7 @@ class Bisq { this.loadBisqDumpFile(); let fsWait: NodeJS.Timeout | null = null; - fs.watch(config.BSQ_BLOCKS_DATA_PATH, () => { + fs.watch(config.BSQ_BLOCKS_DATA_PATH, { recursive: true }, () => { if (fsWait) { clearTimeout(fsWait); }