How do you tell if a transaction was successful? ...
# exposed
t
How do you tell if a transaction was successful?
Copy code
suspend fun deleteVote(userId: Int, reportId: Int): Boolean {
        DatabaseManager.dbQuery {
            Votes.deleteWhere {
                Votes.userId.eq(userId) and Votes.reportId.eq(reportId)
            }
        }

        return  // Was the vote deleted?
    }