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) => {
|
app.get('/versions', (req, res) => {
|
||||||
const availableVersions = [];
|
// All versions are now available via FTS5
|
||||||
if (esvSearchEngine) availableVersions.push({ id: 'esv', name: 'ESV - English Standard Version' });
|
const availableVersions = [
|
||||||
availableVersions.push({ id: 'nkjv', name: 'NKJV - New King James Version' });
|
{ id: 'esv', name: 'ESV - English Standard Version' },
|
||||||
if (nltSearchEngine) availableVersions.push({ id: 'nlt', name: 'NLT - New Living Translation' });
|
{ id: 'nkjv', name: 'NKJV - New King James Version' },
|
||||||
if (csbSearchEngine) availableVersions.push({ id: 'csb', name: 'CSB - Christian Standard Bible' });
|
{ id: 'nlt', name: 'NLT - New Living Translation' },
|
||||||
|
{ id: 'csb', name: 'CSB - Christian Standard Bible' }
|
||||||
|
];
|
||||||
|
|
||||||
res.json({ versions: availableVersions });
|
res.json({ versions: availableVersions });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user