Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(game): remediate server error from 'Updated' field #3158

Merged

Conversation

wescopeland
Copy link
Member

Resolves Undefined array key "Updated".

Root Cause

$achievement = Achievement::where('GameID', $achievementSetClaim->game->id)
    ->where('user_id', $achievementSetClaim->user->id)
    ->orderByDesc('Updated')
    ->first(['Updated as updated_at']); // <------------

The Achievement model accessor is looking for Updated, not updated_at, so this is causing the model to throw an error.

@wescopeland wescopeland requested a review from a team January 30, 2025 22:41
@wescopeland wescopeland merged commit dd877d0 into RetroAchievements:master Jan 31, 2025
9 checks passed
@wescopeland wescopeland deleted the claim-info-crash-fix branch January 31, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants