revert f82aba9a02
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is failing Details

revert  Refactor and add PopularityScore for Mocking Data Source
pull/13/head
Lucas EVARD 11 months ago
parent 9b66d1f01b
commit c64db61e25

@ -174,7 +174,6 @@ class PostgresBetDataSource(private val database: Database) : BetDataSource {
this.createdBy = bet.createdBy this.createdBy = bet.createdBy
this.status = bet.status this.status = bet.status
this.type = bet.type this.type = bet.type
this.popularityscore = 0
} }
) )

@ -41,8 +41,7 @@ interface BetEntity : Entity<BetEntity> {
} else { } else {
database.responses.filter { it.betId eq id }.map { it.response } database.responses.filter { it.betId eq id }.map { it.response }
}, },
createdBy = createdBy, createdBy = createdBy
popularityscore = popularityscore,
) )
fun toBetDetail(database: Database, username: String): BetDetail { fun toBetDetail(database: Database, username: String): BetDetail {

Loading…
Cancel
Save