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

Commit

Permalink
working on new DB system ++DO NOT DEPLOY++
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed May 2, 2020
1 parent eb52996 commit d936f93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.andromeda.araserver.localSearchData

import com.andromeda.araserver.skills.SkillsModel
import com.andromeda.araserver.util.DatabaseClient
import com.andromeda.araserver.util.HaModel
import com.andromeda.araserver.util.OutputModel
import com.andromeda.araserver.util.RemindersModel
Expand Down Expand Up @@ -200,7 +201,7 @@ class ReadDB {
}
}
println(skillsFromDB)
return skillsFromDB
return DatabaseClient().getAll(key, HaModel::class.java)
}

}
3 changes: 2 additions & 1 deletion src/main/java/com/andromeda/araserver/util/NewDoc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ 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, "user-$key", options)
DatabaseClient().get(key, id, data.javaClass)

}

Expand Down

0 comments on commit d936f93

Please sign in to comment.