File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,24 @@ defmodule Algora.Settings do
355355 set ( "pipeline_candidates:#{ org_handle } " , % { "ids" => ids } )
356356 end
357357
358+ @ doc """
359+ Gets portfolio company IDs for a given host handle.
360+ Returns a list of organization IDs or an empty list if not set.
361+ """
362+ def get_portfolio_companies ( host_handle ) when is_binary ( host_handle ) do
363+ case get ( "portfolio_companies:#{ host_handle } " ) do
364+ % { "org_ids" => org_ids } when is_list ( org_ids ) -> org_ids
365+ _ -> [ ]
366+ end
367+ end
368+
369+ @ doc """
370+ Sets portfolio company IDs for a given host handle.
371+ """
372+ def set_portfolio_companies ( host_handle , org_ids ) when is_binary ( host_handle ) and is_list ( org_ids ) do
373+ set ( "portfolio_companies:#{ host_handle } " , % { "org_ids" => org_ids } )
374+ end
375+
358376 defp format_timestamp ( datetime ) do
359377 datetime
360378 |> DateTime . to_string ( )
You can’t perform that action at this time.
0 commit comments