Admin: Add user page
This commit is contained in:
parent
bc0e92bdac
commit
d34e85a18f
24 changed files with 456 additions and 77 deletions
|
|
@ -25,7 +25,7 @@ func (bk *Bookkeeping) Save(ctx context.Context) error {
|
|||
}
|
||||
|
||||
// Update based on the primary key!
|
||||
return sdb.Where("pk = ?", bk.Instance.Pk).Updates(&bk.Instance).Error
|
||||
return sdb.Select("*").Save(&bk.Instance).Error
|
||||
}
|
||||
|
||||
// Delete deletes this instance from the bookkeeping table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue