Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
rm: Rarity preloading
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmolly committed Apr 17, 2024
1 parent 673431e commit 8b16e39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion orm/ship.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func GetRandomPoolShip(poolId uint32) (Ship, error) {
}
var randomShip Ship
err := GormDB.
Preload("Rarity").
Where("pool_id = ? AND rarity_id = ?", poolId, rarity).
Order("RANDOM()").
First(&randomShip).Error
Expand Down

0 comments on commit 8b16e39

Please sign in to comment.