api: rename has logged in field
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 37s

This commit is contained in:
Lee 2024-08-02 00:07:13 +01:00
parent 02fcaf19eb
commit d4e51d1517
2 changed files with 3 additions and 2 deletions

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