by Robin at 20240514

This commit is contained in:
Leufolium 2024-05-14 20:36:01 +08:00
parent 003b669642
commit 1293757049
1 changed files with 1 additions and 1 deletions

View File

@ -4255,7 +4255,7 @@ func (m *Mongo) GetZoneMomentListByMid(ctx *gin.Context, req *zonemomentproto.Op
} }
func (m *Mongo) ThumbsUpZoneMoment(ctx *gin.Context, req *zonemomentproto.OpZoneMomentThumbsUpReq) (err error) { func (m *Mongo) ThumbsUpZoneMoment(ctx *gin.Context, req *zonemomentproto.OpZoneMomentThumbsUpReq) (err error) {
col := m.getColMoment() col := m.getColZoneMoment()
change := qmgo.Change{ change := qmgo.Change{
Update: qmgo.M{"$inc": qmgo.M{"thumbs_up_num": util.DerefInt64(req.Times)}}, Update: qmgo.M{"$inc": qmgo.M{"thumbs_up_num": util.DerefInt64(req.Times)}},
Upsert: true, Upsert: true,