This commit is contained in:
2026-09-17 01:55:28 +07:00
parent 92e4fdd139
commit 49fe193ed7
5 changed files with 58 additions and 39 deletions
+4 -1
View File
@@ -27,6 +27,7 @@ import (
"evening_detective_server/internal/services/file_service"
"evening_detective_server/internal/services/game_service"
"evening_detective_server/internal/services/mcp_service"
"evening_detective_server/internal/services/participation_service"
"evening_detective_server/internal/services/scenarios_service"
"evening_detective_server/internal/services/ui_service"
"evening_detective_server/internal/services/users_service"
@@ -148,7 +149,8 @@ func main() {
os.Getenv("APP_BASE_URL"),
)
go gameService.RunParticipationEmails(context.Background(), emailSender, os.Getenv("PARTICIPATION_SECRET"), os.Getenv("GAME_TIMEZONE"))
participationService := participation_service.NewParticipationService(teamRepo, os.Getenv("APP_BASE_URL"))
go participationService.RunParticipationEmails(context.Background(), emailSender, os.Getenv("PARTICIPATION_SECRET"), os.Getenv("GAME_TIMEZONE"))
// Create a listener on TCP port
lis, err := net.Listen("tcp", ":8080")
@@ -197,6 +199,7 @@ func main() {
fileService,
scenarioService,
gameService,
participationService,
screenRepo,
mapRepo,
),