by Robin at 20241213
This commit is contained in:
parent
b509ee7de5
commit
65d1dfa03e
|
@ -6710,12 +6710,14 @@ func (m *Mongo) BeforeUpdateActivityHotPriority(ctx *gin.Context, from, to int64
|
|||
}
|
||||
|
||||
filter := qmgo.M{
|
||||
"priority": qmgo.M{
|
||||
"$and": []qmgo.M{
|
||||
{
|
||||
"$gt": to,
|
||||
"priority": qmgo.M{
|
||||
"$gt": from,
|
||||
},
|
||||
},
|
||||
{
|
||||
"priority": qmgo.M{
|
||||
"$lte": to,
|
||||
},
|
||||
},
|
||||
|
@ -6885,12 +6887,14 @@ func (m *Mongo) BeforeUpdateActivityBannerPriority(ctx *gin.Context, from, to in
|
|||
}
|
||||
|
||||
filter := qmgo.M{
|
||||
"priority": qmgo.M{
|
||||
"$and": []qmgo.M{
|
||||
{
|
||||
"priority": qmgo.M{
|
||||
"$gt": from,
|
||||
},
|
||||
},
|
||||
{
|
||||
"priority": qmgo.M{
|
||||
"$lte": to,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue