From 09775ef8ebd44dacea97a7abb0a9d09eeda00cbc Mon Sep 17 00:00:00 2001 From: Joshua Ryder Date: Mon, 10 Nov 2025 20:08:31 -0500 Subject: [PATCH] Fix: Restore version selector by removing old search engine checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /versions endpoint was still checking for esvSearchEngine, nltSearchEngine, and csbSearchEngine variables that were removed during FTS5 migration. This caused the version dropdown in the header to be empty. Now returns all 4 versions unconditionally since they're all available via FTS5. Fixes the broken translation selector menu in the top-left header. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/src/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/src/index.js b/backend/src/index.js index 61b67907..58a5cc25 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -185,11 +185,13 @@ app.get('/health', (req, res) => { }); app.get('/versions', (req, res) => { - const availableVersions = []; - if (esvSearchEngine) availableVersions.push({ id: 'esv', name: 'ESV - English Standard Version' }); - availableVersions.push({ id: 'nkjv', name: 'NKJV - New King James Version' }); - if (nltSearchEngine) availableVersions.push({ id: 'nlt', name: 'NLT - New Living Translation' }); - if (csbSearchEngine) availableVersions.push({ id: 'csb', name: 'CSB - Christian Standard Bible' }); + // All versions are now available via FTS5 + const availableVersions = [ + { id: 'esv', name: 'ESV - English Standard Version' }, + { id: 'nkjv', name: 'NKJV - New King James Version' }, + { id: 'nlt', name: 'NLT - New Living Translation' }, + { id: 'csb', name: 'CSB - Christian Standard Bible' } + ]; res.json({ versions: availableVersions }); });