CrazyIter_Bin 2 years ago
parent
commit
4bf1a792dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      TEAMModelOS.SDK/Models/Service/Common/SyllabusService.cs

+ 1 - 1
TEAMModelOS.SDK/Models/Service/Common/SyllabusService.cs

@@ -150,7 +150,7 @@ namespace TEAMModelOS.SDK.Services
                 treeNodes.Add(tree);
 
             }
-            if (volumeChange)
+            if (volumeChange && !string.IsNullOrWhiteSpace(grant_type) && grant_type.Equals("upsert"))
             {
                 await azureCosmos.GetCosmosClient().GetContainer(Constant.TEAMModelOS, tbname).ReplaceItemAsync(volume, volume.id, new PartitionKey(volume.code));
             }