Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
this will not work
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 9, 2020
1 parent 711960b commit 158f085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/andromeda/araserver/util/NewDoc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NewDoc {
fun newDoc(key: String, data: Any, id: String){
val document = Document(data, id, "user-$key")
val client = CosmosClient.create("https://ara-account-data.documents.azure.com:443/",System.getenv("IOTDB") )
val cosmosItemRequestOptions = CosmosItemRequestOptions("PartitionKey")
val cosmosItemRequestOptions = CosmosItemRequestOptions()
val database = client.getDatabase("Ara-android-database")
val container = database.getContainer("Ara-android-collection")
container.createItem(document, cosmosItemRequestOptions).block()
Expand Down

0 comments on commit 158f085

Please sign in to comment.