Merge pull request 'feat-IRONFANS-70' (#252) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/252
This commit is contained in:
commit
6b2cef4112
|
@ -4114,11 +4114,11 @@ func (m *Mongo) IncZoneMomentPriorityByIds(ctx *gin.Context, ids []int64, increm
|
||||||
}
|
}
|
||||||
if increment == consts.ZoneMomentPriorityInZone_Increment {
|
if increment == consts.ZoneMomentPriorityInZone_Increment {
|
||||||
up["$set"] = qmgo.M{
|
up["$set"] = qmgo.M{
|
||||||
"is_headed": consts.IsHeaded_Yes,
|
"is_headed": int64(consts.IsHeaded_Yes),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
up["$set"] = qmgo.M{
|
up["$set"] = qmgo.M{
|
||||||
"is_headed": consts.IsHeaded_No,
|
"is_headed": int64(consts.IsHeaded_No),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_, err := col.UpdateAll(ctx, query, up)
|
_, err := col.UpdateAll(ctx, query, up)
|
||||||
|
|
Loading…
Reference in New Issue