| | |
| | | return (bool)$updated; |
| | | } |
| | | |
| | | public function getLastUpdated(string $service, ?int $userID = null):?string |
| | | { |
| | | $find = $this->findBy($service, $userID); |
| | | return $this->table->pluck('updated_at', $find)[0]??null; |
| | | } |
| | | |
| | | /** |
| | | * Retrieve and decrypt credentials |
| | | */ |
| | |
| | | ], $find); |
| | | } |
| | | |
| | | public function getLastTested(string $service, ?int $userID = null):?string |
| | | { |
| | | $find = $this->findBy($service, $userID); |
| | | return $this->table->pluck('last_tested', $find)[0]??null; |
| | | } |
| | | |
| | | public function markUnhealthy(string $service, string $type = '', ?int $userID = null):void |
| | | { |
| | | $update = []; |