Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jul 9, 2024
1 parent 5696e2d commit 18705ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion database/pk.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ func (r *PkSequence) Next(db *gorm.DB) (id uint) {
return
}
m.LastID++
db.Save(m)
id = m.LastID
err = db.Save(m).Error
if err != nil {
panic(err)
}
return
}

Expand Down

0 comments on commit 18705ee

Please sign in to comment.