main #431

Merged
chenhao merged 2 commits from main into test 2024-05-14 20:36:37 +08:00
1 changed files with 1 additions and 1 deletions

View File

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