mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
фикс создания фасовки
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user