From 778d8a6079bb811ad47d7490120c8781e0840926 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Tue, 19 Dec 2023 11:13:33 -0800 Subject: [PATCH] File patch must only update updateUser. Signed-off-by: Jeff Ortel --- api/file.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/file.go b/api/file.go index b88a50e25..6f907f793 100644 --- a/api/file.go +++ b/api/file.go @@ -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