From 7f16b6922cf19b1bba3877e6860ea854a547d944 Mon Sep 17 00:00:00 2001 From: Noah Prince Date: Wed, 5 Mar 2025 18:14:38 -0800 Subject: [PATCH] Fix bug --- packages/helium-vote-service/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/helium-vote-service/src/index.ts b/packages/helium-vote-service/src/index.ts index 6a7e93f96..af4630866 100644 --- a/packages/helium-vote-service/src/index.ts +++ b/packages/helium-vote-service/src/index.ts @@ -475,7 +475,7 @@ server.post<{ vm.registrar = '${HNT_REGISTRAR.toBase58()}' AND vm.proposal = '${proposal.toBase58()}' ) LEFT OUTER JOIN delegated_positions dp ON dp.mint = pa.asset - WHERE pa.proxy_config = ${HELIUM_PROXY_CONFIG.toBase58()} AND pa.voter = '${wallet.toBase58()}' AND pa.index > 0 AND ( + WHERE pa.proxy_config = '${HELIUM_PROXY_CONFIG.toBase58()}' AND pa.voter = '${wallet.toBase58()}' AND pa.index > 0 AND ( vm is NULL OR vm.proxy_index >= pa.index OR vm.choices IS DISTINCT FROM ARRAY[${choices.join(