Fix NKJV directory path in backend - was looking in ../ instead of ../../

This commit is contained in:
Ryderjj89
2025-09-28 12:31:30 -04:00
parent ceeb465c8d
commit e7b98e0107
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ app.use(express.static(path.join(__dirname, '../../frontend/build')));
// Bible data directories // Bible data directories
const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible const ESV_DATA_DIR = path.join(__dirname, '../../bible-data'); // ESV from mdbible
const NKJV_DATA_DIR = path.join(__dirname, '../NKJV'); // NKJV local files const NKJV_DATA_DIR = path.join(__dirname, '../../NKJV'); // NKJV local files
// Initialize search engines for each version // Initialize search engines for each version
const esvSearchEngine = ESV_DATA_DIR ? new BibleSearchEngine(ESV_DATA_DIR) : null; const esvSearchEngine = ESV_DATA_DIR ? new BibleSearchEngine(ESV_DATA_DIR) : null;

View File

@@ -328,7 +328,7 @@ function App() {
); );
}; };
if (loading) { if (loading || !books) {
return ( return (
<div className="min-h-screen flex items-center justify-center"> <div className="min-h-screen flex items-center justify-center">
<div className="text-center"> <div className="text-center">