Merge pull request 'main' (#431) from main into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/431
This commit is contained in:
chenhao 2024-05-14 20:36:36 +08:00
commit 69a67c1221
1 changed files with 1 additions and 1 deletions

View File

@ -4093,7 +4093,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,