mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Fix for n+1 query while fetching org users
This commit is contained in:
parent
df496aabcc
commit
eb1eff523b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class OrganizationsController < ApplicationController
|
||||
|
||||
def users
|
||||
@org_users = OrganizationUser.where(organization: @current_user.organization)
|
||||
@org_users = OrganizationUser.where(organization: @current_user.organization).includes(:user)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue