Skip to content

Commit

Permalink
fix(backend): update PORT in .env and improve modelsConfig check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma1lboy committed Jan 15, 2025
1 parent a78d34f commit 39622a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PORT=8080
PORT=8090
JWT_SECRET="JACKSONCHENNAHEULALLEN"
SALT_ROUNDS=123
2 changes: 1 addition & 1 deletion backend/src/downloader/universal-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function checkAndDownloadAllModels(

logger.log('Checking and downloading configured models...');

if (!modelsConfig.length) {
if (!modelsConfig || !modelsConfig.length) {
logger.warn(`No ${type} models configured`);
return;
}
Expand Down

0 comments on commit 39622a6

Please sign in to comment.