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,
|
||||
ratingComposition = ratingComp,
|
||||
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
|
||||
)
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ interface IUserData {
|
|||
val lastRomVersion: String
|
||||
val totalScore: Long
|
||||
var card: Card?
|
||||
val lastClientId: String
|
||||
val lastClientId: String?
|
||||
}
|
||||
|
||||
interface IGenericGamePlaylog {
|
||||
|
|
Loading…
Reference in New Issue