From 86121cdda5f0a8e271219c0d167297ac7ed333f1 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 19 Nov 2024 15:32:46 +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 d71d4805..8a5eab3c 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.GetId(), up) + err := col.UpdateId(ctx, moment.Id, up) return err }