minor change

This commit is contained in:
Jicheng Lu 2025-09-30 21:12:34 -05:00
parent 0a7dbfe44f
commit 24295bfe42

View file

@ -66,7 +66,7 @@ public partial class MongoRepository
.ToList();
var result = _dc.AgentCodes.BulkWrite(ops, new BulkWriteOptions { IsOrdered = false });
return result.ModifiedCount > 0;
return result.ModifiedCount > 0 || result.MatchedCount > 0;
}
public bool BulkInsertAgentCodeScripts(string agentId, List<AgentCodeScript> scripts)