Skip to content

Commit

Permalink
fix: allow empty aiagents
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Apr 19, 2024
1 parent e6fea2d commit 8cbab01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function get()

public function getLatestAgents()
{
if (count($this->agentTypes) === 0) {
return null;
}

$body = [
'agent_types' => $this->agentTypes,
'disallow' => '/',
Expand Down

0 comments on commit 8cbab01

Please sign in to comment.