add not hidden scope to hide hidden hub from producers profile

This commit is contained in:
Vishal Jain
2022-10-02 14:11:30 +05:30
committed by Konrad
parent 22cf05ad94
commit 6ead127b5c

View File

@@ -63,7 +63,7 @@ module Api
def hubs
ActiveModel::ArraySerializer.new(
enterprise.distributors, each_serializer: Api::EnterpriseThinSerializer
enterprise.distributors.not_hidden, each_serializer: Api::EnterpriseThinSerializer
)
end