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 }