This commit is contained in:
2026-08-03 02:07:51 +07:00
parent 599c73bc08
commit 2492910e01
3 changed files with 8 additions and 15 deletions
+1 -8
View File
@@ -623,7 +623,7 @@ func (s *server) GiveTeamApplications(ctx context.Context, req *proto.GiveTeamAp
}
func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (*proto.GetTeamStoryRsp, error) {
story, err := s.gameService.GetTeamActions(
story, game, err := s.gameService.GetTeamActions(
ctx,
int(req.Id),
req.Password,
@@ -634,13 +634,6 @@ func (s *server) GetTeamStory(ctx context.Context, req *proto.GetTeamStoryReq) (
}, nil
}
game, err := s.gameService.GetGame(ctx, int(req.Id))
if err != nil {
return &proto.GetTeamStoryRsp{
Error: err.Error(),
}, nil
}
return &proto.GetTeamStoryRsp{
Story: mapStory(story),
Game: mapGame(game),