This commit is contained in:
Aditya Siregar 2025-09-18 12:29:27 +07:00
parent 67812a1d75
commit d3db08fd15

View File

@ -103,7 +103,7 @@ func (r *GameRepository) GetFerrisWheelGame(ctx context.Context) (*entities.Game
var game entities.Game
err := r.db.WithContext(ctx).
Preload("Prizes").
Where("is_active = ? AND LOWER(name) LIKE ?", true, "%ferris wheel%").
Where("is_active = ? AND type = ?", true, "SPIN").
First(&game).Error
if err != nil {
return nil, err