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) Bon earnings query duplicate column error when no earnings exist #4570

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

Roardom
Copy link
Collaborator

@Roardom Roardom commented Mar 17, 2025

A new column is selected for every earning, but if there are no earnings, then no columns are selected, and laravel selects * by default. Change it to select 1 by default instead, so that it doesn't fall back to * when no earnings exist. This selected column won't ever be used, but won't cause any errors either.

A new column is selected for every earning, but if there are no earnings, then no columns are selected, and laravel selects `*` by default. Change it to select `1` by default instead, so that it doesn't fall back to `*` when no earnings exist. This selected column won't ever be used, but won't cause any errors either.
@HDVinnie HDVinnie merged commit b22e1a3 into HDInnovations:development Mar 17, 2025
6 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.

2 participants