Skip to content

Commit

Permalink
Fixing patch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnbjhu committed Sep 4, 2023
1 parent 0464585 commit cbd37e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/uk/gibby/driver/rpc/Update.kt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class UpdateBuilder(private val table: String, private val db: Surreal) {
val response = db.sendRequest("patch", buildJsonArray {
add(table)
add(surrealJson.encodeToJsonElement(builder.build()))
add(true)
})
return surrealJson.decodeFromJsonElement(response)
}
Expand Down Expand Up @@ -267,6 +268,7 @@ class UpdateIdBuilder(private val id: String, private val db: Surreal) {
val result = db.sendRequest("patch", buildJsonArray {
add(id)
add(surrealJson.encodeToJsonElement(builder.build()))
add(true)
})
return surrealJson.decodeFromJsonElement(result)
}
Expand Down

0 comments on commit cbd37e8

Please sign in to comment.