Fix: Restore version selector by removing old search engine checks
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user