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: gang/job validation #1111

Merged
merged 7 commits into from
Jul 25, 2024
Merged

fix: gang/job validation #1111

merged 7 commits into from
Jul 25, 2024

Conversation

Z3rio
Copy link
Contributor

@Z3rio Z3rio commented May 26, 2024

Description

It has come to my attention that there are ways for the job data to become unsynced.
Such as the isboss value being saved as false, even though it's true in the shared files.
(Via no kidding at least 20 tickets of said issue concerning my boss menu and qbcore's isboss state)

I'd imagine this can more specifically be recreated via already having a job, and then said jobs shared data being changed, whilst your "locally" saved player job data wouldn't update.

Therefore this PR aims to introduce validation of said data, to make sure it never ever gets out of sync.

Checklist

  • I have personally loaded this code into an updated qbcore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

Copy link
Contributor

@ChristianBDev ChristianBDev left a comment

Choose a reason for hiding this comment

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

Tested LGTM

@GhzGarage GhzGarage self-assigned this Jul 10, 2024
@GhzGarage GhzGarage added bug Something isn't working Needs Testing/Reviews labels Jul 10, 2024
@GhzGarage GhzGarage merged commit e488cbe into qbcore-framework:main Jul 25, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs Testing/Reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants