@@ -119,8 +119,8 @@ defmodule CodeCorps.GitHub.Sync do
119119
120120 multi =
121121 Multi . new
122- |> Multi . run ( :deleted_comments , fn _ -> Sync.Comment.Comment . delete ( github_id ) end )
123- |> Multi . run ( :deleted_github_comment , fn _ -> Sync.Comment. GithubComment . delete ( github_id ) end )
122+ |> Multi . run ( :deleted_comments , fn _ -> Sync.Comment . delete ( github_id ) end )
123+ |> Multi . run ( :deleted_github_comment , fn _ -> Sync.GithubComment . delete ( github_id ) end )
124124
125125 case multi |> Repo . transaction ( ) do
126126 { :ok , % { deleted_comments: _ , deleted_github_comment: _ } = result } ->
@@ -153,13 +153,13 @@ defmodule CodeCorps.GitHub.Sync do
153153 end )
154154 |> Multi . run ( :github_comment , fn % { github_issue: github_issue } ->
155155 github_issue
156- |> Sync.Comment. GithubComment . create_or_update_comment ( comment_payload )
156+ |> Sync.GithubComment . create_or_update_comment ( comment_payload )
157157 end )
158158 |> Multi . run ( :comment_user , fn % { github_comment: github_comment } ->
159159 github_comment |> Sync.User.RecordLinker . link_to ( comment_payload )
160160 end )
161161 |> Multi . run ( :comment , fn % { github_comment: github_comment , comment_user: user , task: task } ->
162- task |> Sync.Comment.Comment . sync ( github_comment , user )
162+ task |> Sync.Comment . sync ( github_comment , user )
163163 end )
164164
165165 case multi |> Repo . transaction ( ) do
@@ -217,13 +217,13 @@ defmodule CodeCorps.GitHub.Sync do
217217 end )
218218 |> Multi . run ( :github_comment , fn % { github_issue: github_issue } ->
219219 github_issue
220- |> Sync.Comment. GithubComment . create_or_update_comment ( comment_payload )
220+ |> Sync.GithubComment . create_or_update_comment ( comment_payload )
221221 end )
222222 |> Multi . run ( :comment_user , fn % { github_comment: github_comment } ->
223223 github_comment |> Sync.User.RecordLinker . link_to ( comment_payload )
224224 end )
225225 |> Multi . run ( :comment , fn % { github_comment: github_comment , comment_user: user , task: task } ->
226- task |> Sync.Comment.Comment . sync ( github_comment , user )
226+ task |> Sync.Comment . sync ( github_comment , user )
227227 end )
228228
229229 case multi |> Repo . transaction ( ) do
@@ -474,14 +474,14 @@ defmodule CodeCorps.GitHub.Sync do
474474 { :ok , repo } <- repo |> mark_repo ( "fetching_comments" ) ,
475475 { :ok , comment_payloads } <- repo |> API.Repository . issue_comments |> sync_step ( :fetch_comments ) ,
476476 { :ok , repo } <- repo |> mark_repo ( "syncing_github_comments" , % { syncing_comments_count: comment_payloads |> Enum . count } ) ,
477- { :ok , _comments } <- comment_payloads |> Enum . map ( & Sync.Comment. GithubComment . create_or_update_comment ( repo , & 1 ) ) |> ResultAggregator . aggregate |> sync_step ( :sync_comments ) ,
477+ { :ok , _comments } <- comment_payloads |> Enum . map ( & Sync.GithubComment . create_or_update_comment ( repo , & 1 ) ) |> ResultAggregator . aggregate |> sync_step ( :sync_comments ) ,
478478 repo <- GithubRepo |> Repo . get ( repo . id ) |> preload_github_repo ( ) ,
479479 { :ok , repo } <- repo |> mark_repo ( "syncing_users" ) ,
480480 { :ok , _users } <- repo |> Sync.User.User . sync_github_repo ( ) |> sync_step ( :sync_users ) ,
481481 { :ok , repo } <- repo |> mark_repo ( "syncing_tasks" ) ,
482482 { :ok , _tasks } <- repo |> Sync.Issue.Task . sync_github_repo ( ) |> sync_step ( :sync_tasks ) ,
483483 { :ok , repo } <- repo |> mark_repo ( "syncing_comments" ) ,
484- { :ok , _comments } <- repo |> Sync.Comment.Comment . sync_github_repo ( ) |> sync_step ( :sync_comments ) ,
484+ { :ok , _comments } <- repo |> Sync.Comment . sync_github_repo ( ) |> sync_step ( :sync_comments ) ,
485485 { :ok , repo } <- repo |> mark_repo ( "synced" )
486486 do
487487 { :ok , repo }
0 commit comments