by Robin at 20240514
This commit is contained in:
parent
003b669642
commit
1293757049
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue