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

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed May 9, 2020
1 parent 5edef38 commit 735fe48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 options = RequestOptions()
options.partitionKey = PartitionKey("user-$key")
//generate(data, id, "user-$key", options)
generate(data, id, key)
DatabaseClient().get(key, id, data.javaClass)

}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/andromeda/araserver/test/DBtest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class DBtest {
val id = "test-${System.currentTimeMillis()}"
databaseClient.new(id, "test", OutputModel("", "", "", "", "", ""))
println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
val message = databaseClient.getAll<OutputModel>("test", OutputModel::class.java)
val message = databaseClient.getAll("test", OutputModel::class.java)
println(message)
message.forEach {
println(it)
}
databaseClient.edit(id, "test", OutputModel("v2", "", "kldshjfiorbhgoiu", "", "", ""))
println(databaseClient.get<OutputModel>("test", id, OutputModel::class.java))
println(databaseClient.get("test", id, OutputModel::class.java))
println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
databaseClient.delete("test", id)
}
Expand Down

0 comments on commit 735fe48

Please sign in to comment.