Complete API handlers refactoring to eliminate type switching and use repository pattern consistently
This commit is contained in:
@@ -105,8 +105,7 @@ func runEnhance(cmd *cobra.Command, args []string) {
|
||||
defer database.Close()
|
||||
client = database.NewContentRepository()
|
||||
} else {
|
||||
fmt.Printf("🧪 No database or API configured, using mock content\n")
|
||||
client = content.NewMockClient()
|
||||
panic("🧪 No database or API configured\n")
|
||||
}
|
||||
|
||||
// Load site-specific configuration
|
||||
|
||||
Reference in New Issue
Block a user