forked from Cookies_Github_mirror/AquaDX
[F] Fix lastClientId null
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user