hhb 7 months ago
parent
commit
14b665e2f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      TEAMModelOS.Function/CosmosDBTriggers/TriggerExam.cs

+ 2 - 2
TEAMModelOS.Function/CosmosDBTriggers/TriggerExam.cs

@@ -1887,9 +1887,9 @@ namespace TEAMModelOS.CosmosDBTriggers
             result.scope = info.scope;
             result.scope = info.scope;
             result.name = info.name;
             result.name = info.name;
             result.time = info.startTime;
             result.time = info.startTime;
-            if (info.qamode != 2) {
+            //if (info.qamode != 2) {
                 await examRecordCount(info, subject, _dingDing, no, result, examClassResults, _azureCosmos);
                 await examRecordCount(info, subject, _dingDing, no, result, examClassResults, _azureCosmos);
-            }          
+            //}          
             await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Common").UpsertItemAsync(result, new PartitionKey($"ExamResult-{info.id}"));
             await _azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, "Common").UpsertItemAsync(result, new PartitionKey($"ExamResult-{info.id}"));
             List<ErrorItems> errorItems = new();
             List<ErrorItems> errorItems = new();
             string code = string.Empty;
             string code = string.Empty;