File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ protected function displayDnsRecordsChanges(Deployment $deployment)
62
62
63
63
$ vapor = Helpers::app (ConsoleVaporClient::class);
64
64
65
- collect ($ vapor ->zones ())->filter (function ($ zone ) use ($ deployment ) {
65
+ collect ($ vapor ->zones ($ deployment -> project [ ' team_id ' ] ))->filter (function ($ zone ) use ($ deployment ) {
66
66
return in_array ($ zone ['zone ' ], $ deployment ->root_domains );
67
67
})->filter (function ($ zone ) use ($ vapor ) {
68
68
return collect ($ vapor ->records ($ zone ['id ' ]))->contains (function ($ record ) {
Original file line number Diff line number Diff line change @@ -208,11 +208,15 @@ public function deleteProvider($providerId)
208
208
/**
209
209
* Get the zones that belong to the account.
210
210
*
211
+ * @param int $teamId
212
+ *
211
213
* @return array
212
214
*/
213
- public function zones ()
215
+ public function zones ($ teamId = null )
214
216
{
215
- return $ this ->request ('get ' , '/api/teams/ ' .Helpers::config ('team ' ).'/zones ' );
217
+ $ teamId = $ teamId ?: Helpers::config ('team ' );
218
+
219
+ return $ this ->request ('get ' , '/api/teams/ ' .$ teamId .'/zones ' );
216
220
}
217
221
218
222
/**
You can’t perform that action at this time.
0 commit comments