фикс создания фасовки

This commit is contained in:
2025-12-29 12:34:52 +03:00
parent 310a64e3ba
commit d6703e1a4b
8 changed files with 128 additions and 50 deletions

View File

@@ -102,7 +102,7 @@ func main() {
ocrHandler := handlers.NewOCRHandler(ocrService)
recommendHandler := handlers.NewRecommendationsHandler(recService)
settingsHandler := handlers.NewSettingsHandler(accountRepo, catalogRepo)
invoicesHandler := handlers.NewInvoiceHandler(invoicesService)
invoicesHandler := handlers.NewInvoiceHandler(invoicesService, syncService)
// 8. Telegram Bot (Передаем syncService)
if cfg.Telegram.Token != "" {
@@ -176,6 +176,7 @@ func main() {
// Invoices
api.GET("/invoices/:id", invoicesHandler.GetInvoice)
api.POST("/invoices/sync", invoicesHandler.SyncInvoices)
// Manual Sync Trigger
api.POST("/sync/all", func(c *gin.Context) {