This commit is contained in:
parent
e014d2b80a
commit
0329c89ae9
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue