[F] Fix lastClientId null

matching
Azalea 2024-12-20 04:53:48 -05:00
parent 813ec7d294
commit 85c0b670da
2 changed files with 2 additions and 2 deletions

View File

@ -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
)
}

View File

@ -91,7 +91,7 @@ interface IUserData {
val lastRomVersion: String
val totalScore: Long
var card: Card?
val lastClientId: String
val lastClientId: String?
}
interface IGenericGamePlaylog {