generated from VLADIMIR/template
fix codes
This commit is contained in:
Binary file not shown.
@@ -98,7 +98,6 @@ func main() {
|
||||
os.Getenv("FILE_PREFIX_DOMAIN"),
|
||||
passwordGenerator,
|
||||
storyteller,
|
||||
cleaner,
|
||||
actionsRepo,
|
||||
applicationsRepo,
|
||||
)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user