api: rename has logged in field
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 37s
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 37s
This commit is contained in:
parent
02fcaf19eb
commit
d4e51d1517
@ -54,7 +54,7 @@ public class User {
|
||||
* </p>
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean hasLoggedIn;
|
||||
public boolean linkedAccount;
|
||||
|
||||
/**
|
||||
* The user's ScoreSaber account.
|
||||
|
@ -139,7 +139,7 @@ public class ScoreSaberPlatform extends Platform {
|
||||
@Override
|
||||
public void updatePlayers() {
|
||||
for (User user : this.userService.getUsers(false)) {
|
||||
if (!user.isHasLoggedIn()) { // Check if the user has linked their account
|
||||
if (!user.isLinkedAccount()) { // Check if the user has linked their account
|
||||
continue;
|
||||
}
|
||||
ScoreSaberAccountToken account = scoreSaberService.getAccount(user); // Get the account from the ScoreSaber API
|
||||
@ -151,6 +151,7 @@ public class ScoreSaberPlatform extends Platform {
|
||||
account.getScoreStats().getAverageRankedAccuracy(),
|
||||
account.getScoreStats().getTotalPlayCount()
|
||||
)); // Add the statistic to the user's history
|
||||
this.userService.saveUser(user); // Save the user
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user