diff --git a/bin/evening_detective_server b/bin/evening_detective_server index f72fcb4..4d324fa 100755 Binary files a/bin/evening_detective_server and b/bin/evening_detective_server differ diff --git a/cmd/evening_detective_server/main.go b/cmd/evening_detective_server/main.go index d76207d..79676ed 100644 --- a/cmd/evening_detective_server/main.go +++ b/cmd/evening_detective_server/main.go @@ -98,7 +98,6 @@ func main() { os.Getenv("FILE_PREFIX_DOMAIN"), passwordGenerator, storyteller, - cleaner, actionsRepo, applicationsRepo, ) diff --git a/internal/services/game_service/service.go b/internal/services/game_service/service.go index f299172..63894b4 100644 --- a/internal/services/game_service/service.go +++ b/internal/services/game_service/service.go @@ -2,7 +2,6 @@ package game_service import ( "context" - "evening_detective_server/internal/modules/cleaner" "evening_detective_server/internal/modules/password_generator" "evening_detective_server/internal/modules/storytelling" "evening_detective_server/internal/repos/actions_repo" @@ -22,7 +21,6 @@ type GameService struct { domain string passwordGenerator password_generator.IPasswordGenerator storyteller storytelling.IStory - cleaner cleaner.ICleaner actionsRepo *actions_repo.ActionsRepo applicationsRepo *applications_repo.ApplicationsRepo } @@ -35,7 +33,6 @@ func NewGameService( domain string, passwordGenerator password_generator.IPasswordGenerator, storyteller storytelling.IStory, - cleaner cleaner.ICleaner, actionsRepo *actions_repo.ActionsRepo, applicationsRepo *applications_repo.ApplicationsRepo, ) *GameService { @@ -47,7 +44,6 @@ func NewGameService( domain: domain, passwordGenerator: passwordGenerator, storyteller: storyteller, - cleaner: cleaner, actionsRepo: actionsRepo, applicationsRepo: applicationsRepo, } @@ -208,8 +204,7 @@ func (s *GameService) AddTeamAction(ctx context.Context, teamId int, password st return teams_repo.ErrTeamNotFound } - code := s.cleaner.ClearCode(actionCode) - _, err = s.actionsRepo.AddAction(ctx, teamId, code) + _, err = s.actionsRepo.AddAction(ctx, teamId, actionCode) if err != nil { return err }