Replace history query with actual upsert

This commit is contained in:
arkon
2022-05-29 12:12:06 -04:00
parent 0dbe82c781
commit cd0294b1b6
4 changed files with 21 additions and 34 deletions

View File

@@ -30,16 +30,6 @@ interface HistoryQueries : DbProvider {
)
.prepare()
/**
* Updates the history last read.
* Inserts history object if not yet in database
* @param history history object
*/
fun upsertHistoryLastRead(history: History) = db.put()
.`object`(history)
.withPutResolver(HistoryUpsertResolver())
.prepare()
/**
* Updates the history last read.
* Inserts history object if not yet in database