Try using ()
instead of {}
around your where
and set
clauses, like:
inTransaction {
update(AppDB.postTable) ( p =>
where(p.id === postId)
set(p.upVotes := p.upVotes.~ + 1)
)
}
I am not sure why, but I have had issues with {}
in the past. When I tested the change against your code, the problem seemed to get resolved.