Skip to content

Commit

Permalink
Revert "Achievements per Course"
Browse files Browse the repository at this point in the history
  • Loading branch information
13on4rd authored Jan 14, 2025
1 parent 84923a2 commit 5078e3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Scripts/GameManager/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ private async UniTask<bool> SavePlayerStatistic()

string json = JsonUtility.ToJson(playerStatisticDTO, true);

bool successful = await RestRequest.PutRequest(path, json);
bool succesful = await RestRequest.PutRequest(path, json);

if (successful)
if (succesful)
{
Debug.Log("Updated player statistic successfully");
return true;
Expand All @@ -113,7 +113,7 @@ private async UniTask<bool> SavePlayerStatistic()
public async UniTask<bool> SaveAchievements()
{
List<AchievementData> achievements = DataManager.Instance.GetAchievements();
string basePath = overworldBackendPath + playersPath + userId + coursesPath + courseId + "/achievements/";
string basePath = overworldBackendPath + playersPath + userId + "/achievements/";

bool savingSuccessful = true;
foreach (AchievementData achievementData in achievements)
Expand Down Expand Up @@ -289,7 +289,7 @@ await RestRequest.GetArrayRequest<PlayerTaskStatisticDTO>(path +
string playerPath = overworldBackendPath + playersPath + userId;

Optional<AchievementStatistic[]> achievementStatistics =
await RestRequest.GetArrayRequest<AchievementStatistic>(playerPath + coursesPath + courseId + "/achievements");
await RestRequest.GetArrayRequest<AchievementStatistic>(playerPath + "/achievements");
if(!achievementStatistics.IsPresent())
{
loadingError = true;
Expand Down

0 comments on commit 5078e3f

Please sign in to comment.