DB Backup Bugfix

This commit is contained in:
Stefan Hardegger
2025-07-31 08:36:33 +02:00
parent 7227061d25
commit b0c14d4b37

View File

@@ -165,11 +165,13 @@ public class DatabaseManagementService {
// Reindex search after successful restore // Reindex search after successful restore
try { try {
// Note: Manual reindexing may be needed after restore System.err.println("Starting Typesense reindex after successful restore...");
// The search indices will need to be rebuilt through the settings page typesenseService.recreateCollections();
System.err.println("Typesense reindex completed successfully.");
} catch (Exception e) { } catch (Exception e) {
// Log the error but don't fail the restore // Log the error but don't fail the restore
System.err.println("Warning: Search indices may need manual reindexing after restore"); System.err.println("Warning: Failed to reindex Typesense after restore: " + e.getMessage());
e.printStackTrace();
} }
} catch (SQLException e) { } catch (SQLException e) {