Skip to content

Commit

Permalink
File patch must only update updateUser.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Dec 19, 2023
1 parent 9f7151a commit 778d8a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ func (h FileHandler) Append(ctx *gin.Context) {
_ = ctx.Error(err)
return
}
m.UpdateUser = h.BaseHandler.CurrentUser(ctx)
err = db.Save(m).Error
db = h.DB(ctx)
db = db.Model(m)
user := h.BaseHandler.CurrentUser(ctx)
err = db.Update("UpdateUser", user).Error
if err != nil {
_ = ctx.Error(err)
return
Expand Down

0 comments on commit 778d8a6

Please sign in to comment.