From 1ecef77807bf9aeae6488191409c6e4092d91587 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Tue, 9 Dec 2025 17:22:56 +0100 Subject: [PATCH] fix: Health monitor TypeScript error - getAllPositions() method name - Fixed method call from getPositions() to getAllPositions() - Health monitor now starts successfully and runs every 30 seconds - Detects Position Manager monitoring failures within 30 seconds - Addresses Common Pitfall #77 detection Tested: Container restart confirmed health monitor operational --- cluster/exploration.db | Bin 233472 -> 233472 bytes lib/health/position-manager-health.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/exploration.db b/cluster/exploration.db index d8c654349c668378a905621d0e23cbf16fc1211c..cb0238ccf3ae9ad1db8d0f5749827d9fec2b8583 100644 GIT binary patch delta 409 zcmZozz}K*VZ-NvP>%NIHPC#;F!ZLe~2@HIOJPBMAHVXM|>MXPU?T)6dAyP1R4%&n+lQ%}C8F&MZrfFD_3_EzmDBG>k7w zEiTO|DF(CCN^^4JlQT;5vf~Ya04ArGTwJEjH$6a~S!VkxUFLs`OxjE!o~)1|`vv|5 z>=&R8Wnf^?1_q7#Bn6i3EC$T~?3KPU@bUXF@cZz;*k^d7iFgw85Wi1KYp98W<`VnpznfS{WJY8JL?|np-sIGePw- zf%NA2?1AYu!m8K6(#qIG&(z4k*vO6jV&$B zOg9BQ^p}C!z|74o%?M>PaWPACg4oS}=ePfz&$#{Xd?wZgt`!V?ya5cn0sJSn^C&QL z@=jI|u;#X6EERML?B0{;T`3sC34jac$?n*lSE v1IJ4SK7JntexK<)1 { // Get Drift positions const driftService = getDriftService() - const positions = await driftService.getPositions() + const positions = await driftService.getAllPositions() const driftPositions = positions.filter(p => Math.abs(p.size) > 0).length // CRITICAL CHECK #1: DB has open trades but PM not monitoring