Skip to content

Commit

Permalink
Merge pull request #2 from ppolariss/main
Browse files Browse the repository at this point in the history
fix: use model instead of table
  • Loading branch information
JingYiJun authored Jun 29, 2024
2 parents 91f5fd6 + 43dc1de commit 5cef7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func Dump() {
var holeIDs []int
var floors Floors
result := DB.Table("hole").
result := DB.Model(&Hole{}).
Select("id").
Where("hidden = false").
FindInBatches(&holeIDs, 1000, func(tx *gorm.DB, batch int) error {
Expand Down

0 comments on commit 5cef7c0

Please sign in to comment.