🔃 refactor: Index Sync in Background

This commit is contained in:
Danny Avila 2025-06-20 20:44:13 -04:00
parent 72cd159a37
commit 0587a1cc7c
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -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);