fix: solve incorrect time.Unix and logger asyncwrite in pre-release-v3.8.4 branch. (#3586)

This commit is contained in:
Monet Lee
2025-09-30 17:55:03 +08:00
committed by GitHub
parent 262789887c
commit 56b204dda4
4 changed files with 68 additions and 59 deletions
@@ -109,7 +109,7 @@ func (g *GroupRequestMgo) GetUnhandledCount(ctx context.Context, groupIDs []stri
}
filter := bson.M{"group_id": bson.M{"$in": groupIDs}, "handle_result": 0}
if ts != 0 {
filter["req_time"] = bson.M{"$gt": time.Unix(ts, 0)}
filter["req_time"] = bson.M{"$gt": time.UnixMilli(ts)}
}
return mongoutil.Count(ctx, g.coll, filter)
}