This commit is contained in:
Leufolium 2024-11-19 15:24:04 +08:00
parent e014d2b80a
commit 0329c89ae9
1 changed files with 1 additions and 1 deletions

View File

@ -1669,7 +1669,7 @@ func (m *Mongo) UpdateMoment(ctx *gin.Context, moment *dbstruct.Moment) error {
up := qmgo.M{ up := qmgo.M{
"$set": set, "$set": set,
} }
err := col.UpdateId(ctx, moment.Id, up) err := col.UpdateId(ctx, moment.GetId(), up)
return err return err
} }