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 snapshot store loading #173

Merged

Conversation

joshhanley
Copy link
Collaborator

@joshhanley joshhanley commented Sep 22, 2024

PR #171 added the option to loadMany states based on an array of IDs, but this commit 68e88ac broke in how the snapshots were loaded from the database as the where clause got changed from state_id to id.

So this PR changes it back to state_id and adds a test that ensures both loadOne and loadMany function correctly.

Edit: Tests are failing only on Laravel 10 lowest, so maybe there is a bug with the collection ->ensure() method in an older Laravel 10 version.

@DanielCoulbourne DanielCoulbourne merged commit 82ab457 into hirethunk:main Sep 23, 2024
12 of 41 checks passed
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.

3 participants