From 18705ee25a2c7cf43057bd5fa1f252c9213e1fba Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Tue, 9 Jul 2024 16:25:38 -0700 Subject: [PATCH] checkpoint Signed-off-by: Jeff Ortel --- database/pk.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/database/pk.go b/database/pk.go index c13db1d18..830bcea78 100644 --- a/database/pk.go +++ b/database/pk.go @@ -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 }