Fix: DB user column -> player
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
class RankingRecord {
|
||||
|
||||
constructor(rank, userID, userName, bestRecord) {
|
||||
constructor(rank, playerID, playerName, bestRecord) {
|
||||
this.rank = rank;
|
||||
this.userID = userID;
|
||||
this.userName = userName;
|
||||
this.playerID = playerID;
|
||||
this.playerName = playerName;
|
||||
this.bestRecord = bestRecord;
|
||||
}
|
||||
}
|
||||
@@ -36,12 +36,12 @@ class RankingRecordManager {
|
||||
return this.rankingRecords[index].rank;
|
||||
}
|
||||
|
||||
getUserIDAt(index) {
|
||||
return this.rankingRecords[index].userID;
|
||||
getPlayerIDAt(index) {
|
||||
return this.rankingRecords[index].playerID;
|
||||
}
|
||||
|
||||
getUserNameAt(index) {
|
||||
return this.rankingRecords[index].userName;
|
||||
getPlayerNameAt(index) {
|
||||
return this.rankingRecords[index].playerName;
|
||||
}
|
||||
|
||||
getBestRecordAt(index) {
|
||||
|
||||
Reference in New Issue
Block a user