Refactor: remove pkg mem cache
This commit is contained in:
		| @@ -84,6 +84,9 @@ func (p *RepoProvider) RoomGetExtended(ctx context.Context, id string) (*models. | ||||
| 	} | ||||
| 	room.RedTeam.Color = string(models.UserTeamRed) | ||||
| 	room.BlueTeam.Color = string(models.UserTeamBlue) | ||||
| 	if room.BotMap == nil { | ||||
| 		room.BotMap = make(map[string]models.BotPlayer) | ||||
| 	} | ||||
| 	for _, player := range players { | ||||
| 		if player.Team == models.UserTeamRed { | ||||
| 			if player.Role == models.UserRoleMime { | ||||
| @@ -99,9 +102,6 @@ func (p *RepoProvider) RoomGetExtended(ctx context.Context, id string) (*models. | ||||
| 			} | ||||
| 		} | ||||
| 		if player.IsBot { | ||||
| 			if room.BotMap == nil { | ||||
| 				room.BotMap = make(map[string]models.BotPlayer) | ||||
| 			} | ||||
| 			room.BotMap[player.Username] = models.BotPlayer{ | ||||
| 				Role: player.Role, | ||||
| 				Team: player.Team, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder