mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
🔃 refactor: Index Sync in Background
This commit is contained in:
parent
72cd159a37
commit
0587a1cc7c
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ const startServer = async () => {
|
|||
await connectDb();
|
||||
|
||||
logger.info('Connected to MongoDB');
|
||||
await indexSync();
|
||||
indexSync().catch((err) => {
|
||||
logger.error('[indexSync] Background sync failed:', err);
|
||||
});
|
||||
|
||||
app.disable('x-powered-by');
|
||||
app.set('trust proxy', trusted_proxy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue