mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix lastClientId null
parent
813ec7d294
commit
85c0b670da
|
@ -158,7 +158,7 @@ abstract class GameApiController<T : IUserData>(val name: String, userDataClass:
|
||||||
lastVersion = user.lastRomVersion,
|
lastVersion = user.lastRomVersion,
|
||||||
ratingComposition = ratingComp,
|
ratingComposition = ratingComp,
|
||||||
recent = plays.sortedBy { it.userPlayDate.toString() }.takeLast(15).reversed(),
|
recent = plays.sortedBy { it.userPlayDate.toString() }.takeLast(15).reversed(),
|
||||||
lastPlayedHost = us.userRepo.findByKeychip(user.lastClientId)?.username,
|
lastPlayedHost = user.lastClientId?.let { us.userRepo.findByKeychip(it)?.username },
|
||||||
rival = rival
|
rival = rival
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ interface IUserData {
|
||||||
val lastRomVersion: String
|
val lastRomVersion: String
|
||||||
val totalScore: Long
|
val totalScore: Long
|
||||||
var card: Card?
|
var card: Card?
|
||||||
val lastClientId: String
|
val lastClientId: String?
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IGenericGamePlaylog {
|
interface IGenericGamePlaylog {
|
||||||
|
|
Loading…
Reference in New Issue