File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,15 @@ class ProcessAggregatedEvents implements ShouldQueue
2020
2121 protected string $ nodeId ;
2222
23+ protected GithubService $ githubService ;
24+
2325 /**
2426 * Create a new job instance.
2527 */
26- public function __construct (string $ nodeId )
28+ public function __construct (string $ nodeId, GithubService $ githubService )
2729 {
2830 $ this ->nodeId = $ nodeId ;
31+ $ this ->githubService = $ githubService ;
2932 }
3033
3134 /**
@@ -55,8 +58,7 @@ public function handle(): void
5558 )->render ();
5659
5760 Log::info ('ProcessAggregatedEvents: Message: ' .$ message );
58- $ githubService = new GithubService ;
59- $ githubService ->commentOnNode ($ this ->nodeId , $ message );
61+ $ this ->githubService ->commentOnNode ($ this ->nodeId , $ message );
6062 }
6163
6264 /**
You can’t perform that action at this time.
0 commit comments