mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 09:17:28 +08:00
[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,
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user