by Robin at 20240411
This commit is contained in:
parent
0975288b86
commit
b7e5eda22d
|
@ -4226,11 +4226,11 @@ func (m *Mongo) IncZoneMomentPriorityByIds(ctx *gin.Context, ids []int64, increm
|
|||
}
|
||||
if increment == consts.ZoneMomentPriorityInZone_Increment {
|
||||
up["$set"] = qmgo.M{
|
||||
"is_headed": consts.IsHeaded_Yes,
|
||||
"is_headed": int64(consts.IsHeaded_Yes),
|
||||
}
|
||||
} else {
|
||||
up["$set"] = qmgo.M{
|
||||
"is_headed": consts.IsHeaded_No,
|
||||
"is_headed": int64(consts.IsHeaded_No),
|
||||
}
|
||||
}
|
||||
_, err := col.UpdateAll(ctx, query, up)
|
||||
|
|
Loading…
Reference in New Issue