Skip to content

Commit

Permalink
replace dynamic with object
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLaphante committed Nov 22, 2023
1 parent b7c47eb commit 98cc2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CynkyAutomation/Utilities/CosmosDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static List<BsonDocument> GetCredentialsItemsFromMongoDB(string dbName, string c
}
#endregion

public static void UpdateItem(string dbName, string collectionName, dynamic jsonItem)
public static void UpdateItem(string dbName, string collectionName, object jsonItem)
{
using (var _client = new CosmosClient(ConfigManager.AzureCosmosDBURL.GetValueOrDefault(dbName),
ConfigManager.AzureCosmosDBSecretKey.GetValueOrDefault(dbName)))
Expand All @@ -73,7 +73,7 @@ public static void UpdateItem(string dbName, string collectionName, dynamic json
}
}

public static void CreateItem(string dbName, string collectionName, dynamic jsonItem)
public static void CreateItem(string dbName, string collectionName, object jsonItem)
{
using (var _client = new CosmosClient(ConfigManager.AzureCosmosDBURL.GetValueOrDefault(dbName),
ConfigManager.AzureCosmosDBSecretKey.GetValueOrDefault(dbName)))
Expand Down

0 comments on commit 98cc2b5

Please sign in to comment.