wheel
This commit is contained in:
parent
67812a1d75
commit
d3db08fd15
@ -103,7 +103,7 @@ func (r *GameRepository) GetFerrisWheelGame(ctx context.Context) (*entities.Game
|
|||||||
var game entities.Game
|
var game entities.Game
|
||||||
err := r.db.WithContext(ctx).
|
err := r.db.WithContext(ctx).
|
||||||
Preload("Prizes").
|
Preload("Prizes").
|
||||||
Where("is_active = ? AND LOWER(name) LIKE ?", true, "%ferris wheel%").
|
Where("is_active = ? AND type = ?", true, "SPIN").
|
||||||
First(&game).Error
|
First(&game).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user