From 0329c89ae9d2eb91c5012201fd013af7f6e1e872 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 19 Nov 2024 15:24:04 +0800 Subject: [PATCH] 1 --- app/mix/dao/mongo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 8a5eab3c..d71d4805 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -1669,7 +1669,7 @@ func (m *Mongo) UpdateMoment(ctx *gin.Context, moment *dbstruct.Moment) error { up := qmgo.M{ "$set": set, } - err := col.UpdateId(ctx, moment.Id, up) + err := col.UpdateId(ctx, moment.GetId(), up) return err }