f82aba9a02
revert ✨ Refactor and add PopularityScore for Mocking Data Source
@ -174,7 +174,6 @@ class PostgresBetDataSource(private val database: Database) : BetDataSource {
this.createdBy = bet.createdBy
this.status = bet.status
this.type = bet.type
this.popularityscore = 0
}
)
@ -41,8 +41,7 @@ interface BetEntity : Entity<BetEntity> {
} else {
database.responses.filter { it.betId eq id }.map { it.response }
},
createdBy = createdBy,
popularityscore = popularityscore,
createdBy = createdBy
fun toBetDetail(database: Database, username: String): BetDetail {