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 map() call on undefined; fix unrelate() usage #5781

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

asenchuk
Copy link
Contributor

@asenchuk asenchuk commented Oct 24, 2022

The changes in v2.5.288 doesn't seem to be tested well. We use Keycloak via OIDC (because we need a group mapping which is absent in Keycloak provider) so I fixed it right in prod (yeah it's sort of things we always love). Sending a PR, hope the fix works for others.

  1. await user.$relatedQuery('groups').select('groups.id') already returns a groups array, not an object with groups property.
  2. unrelate() should be used with a where clause

@shawnweeks
Copy link

I encountered and fixed this same issue today without noticing this PR and I did the exact same thing. +1 for me

@NGPixel NGPixel merged commit e6bbf9d into requarks:main Oct 25, 2022
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
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