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

refactor(game): migrate several helpers to eloquent orm #2505

Merged

Conversation

wescopeland
Copy link
Member

This PR migrates several of the key game modification helper functions to use Eloquent ORM queries. Currently, since these are making raw SQL calls to the DB, most model updates made by developers are not showing up in the game entity's activitylog in the management panel.

@wescopeland wescopeland requested a review from a team June 16, 2024 18:14

return true;
}

function getRichPresencePatch(int $gameID, ?array &$dataOut): bool
function getRichPresencePatch(int $gameId, ?array &$dataOut): bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$dataOut should be a string.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to string in latest. This one escaped me - has this been incorrectly typed the whole time?

@wescopeland wescopeland merged commit 40052d6 into RetroAchievements:master Jun 19, 2024
5 checks passed
@wescopeland wescopeland deleted the game-helpers-eloquent branch June 19, 2024 20:38
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