Upstream sync

This commit is contained in:
Senad Uka
2023-10-24 05:48:19 +02:00
parent 2c267b71e4
commit fd880aeaa2
8 changed files with 83 additions and 77 deletions

View File

@@ -8,8 +8,6 @@ import (
"gitlab.com/pactual1/backend/config"
"gitlab.com/pactual1/backend/models"
"gitlab.com/pactual1/backend/routes"
"gitlab.com/pactual1/backend/services/blockchain"
"gitlab.com/pactual1/backend/services/contract"
"gitlab.com/pactual1/backend/services/erp"
"gitlab.com/pactual1/backend/services/messaging"
"gitlab.com/pactual1/backend/shared"
@@ -75,11 +73,6 @@ func main() {
go messagingService.MessagingService()
go erp.ERPService(erpChannel)
encryptionClient := shared.NewEncryptionClient(config.AppConfig.Service.BlockchainSecret)
blockchainClient := blockchain.NewService(config.AppConfig.Blockchain)
contractService := contract.NewService(contractChannel, shared.GetDb(), encryptionClient, blockchainClient)
go contractService.ContractService()
// Sending messages via channels
// messagingChannel <- "Send an email"
erpChannel <- "Update ERP record"