File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed 
lib/algora_web/live/admin Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,8 @@ defmodule AlgoraWeb.Admin.CampaignLive do
212212    end 
213213  end 
214214
215-   @ spec  enqueue_emails ( recipients  ::  list ( ) ,  subject  ::  String . t ( ) ,  template  ::  String . t ( ) )  ::  :ok 
215+   @ spec  enqueue_emails ( recipients  ::  list ( ) ,  subject  ::  String . t ( ) ,  template  ::  String . t ( ) )  :: 
216+           { :ok ,  term }  |  { :error ,  term } 
216217  def  enqueue_emails ( recipients ,  subject ,  template )  do 
217218    Repo . transact ( fn  _  -> 
218219      recipients 
@@ -236,7 +237,8 @@ defmodule AlgoraWeb.Admin.CampaignLive do
236237    end ) 
237238  end 
238239
239-   @ spec  deliver_email ( recipient  ::  map ( ) ,  subject  ::  String . t ( ) ,  template_params  ::  Keyword . t ( ) )  ::  :ok 
240+   @ spec  deliver_email ( recipient  ::  map ( ) ,  subject  ::  String . t ( ) ,  template_params  ::  Keyword . t ( ) )  :: 
241+           { :ok ,  term }  |  { :error ,  term } 
240242  def  deliver_email ( recipient ,  subject ,  template_params )  do 
241243    case  :get 
242244         |>  Finch . build ( "https://algora.io/og/go/#{ recipient [ "repo_owner" ] } #{ recipient [ "repo_name" ] }  ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments