This commit is contained in:
Leufolium 2024-11-19 15:32:46 +08:00
parent 0329c89ae9
commit 86121cdda5
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{
"$set": set,
}
err := col.UpdateId(ctx, moment.GetId(), up)
err := col.UpdateId(ctx, moment.Id, up)
return err
}