Refactor and add PopularityScore for Mocking Data Source
continuous-integration/drone/push Build is passing Details

pull/13/head
luevard 11 months ago
parent 75666ad2a3
commit f82aba9a02

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

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

Loading…
Cancel
Save