mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:14:04 +00:00
Add support for getTenantById fields arg being str
This commit is contained in:
parent
96fe45de7a
commit
cbabb9136d
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ class RedisStorageDriver implements StorageDriver
|
||||||
*/
|
*/
|
||||||
public function getTenantById(string $uuid, $fields = []): array
|
public function getTenantById(string $uuid, $fields = []): array
|
||||||
{
|
{
|
||||||
|
$fields = (array) $fields;
|
||||||
|
|
||||||
if (! $fields) {
|
if (! $fields) {
|
||||||
return $this->redis->hgetall("tenants:$uuid");
|
return $this->redis->hgetall("tenants:$uuid");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue