Merge branch 'pre-release-v3.8.4' into cherry-pick-fa3d251

This commit is contained in:
chao
2025-05-14 16:37:14 +08:00
committed by GitHub
36 changed files with 2983 additions and 56 deletions
+2 -1
View File
@@ -283,7 +283,8 @@ func (g *NotificationSender) fillOpUserByUserID(ctx context.Context, userID stri
func (g *NotificationSender) setVersion(ctx context.Context, version *uint64, versionID *string, collName string, id string) {
versions := versionctx.GetVersionLog(ctx).Get()
for _, coll := range versions {
for i := len(versions) - 1; i >= 0; i-- {
coll := versions[i]
if coll.Name == collName && coll.Doc.DID == id {
*version = uint64(coll.Doc.Version)
*versionID = coll.Doc.ID.Hex()