1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +00:00
The domain was wrapped in "".
This commit is contained in:
Samuel Štancl 2019-07-25 11:19:52 +02:00
parent 353f7afb82
commit 66a4fe9630
2 changed files with 19 additions and 1 deletions

View file

@ -53,10 +53,17 @@ class RedisStorageDriver implements StorageDriver
return $this->redis->hgetall("tenants:$uuid");
}
/**
* @inheritDoc
*
* @param string $id
* @return boolean
* @todo Make tenant & domain deletion atomic.
*/
public function deleteTenant(string $id): bool
{
try {
$domain = $this->getTenantById($id)['domain'];
$domain = json_decode($this->getTenantById($id)['domain']);
} catch (\Throwable $th) {
throw new \Exception("No tenant with UUID $id exists.");
}