mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 18:25:09 +01:00
Fix Group resource returning null twofaccounts_count
This commit is contained in:
parent
b6a5ce6677
commit
ca4b16a7cc
@ -17,7 +17,7 @@ public function toArray($request)
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'twofaccounts_count' => $this->twofaccounts_count,
|
||||
'twofaccounts_count' => is_null($this->twofaccounts_count) ? 0 : $this->twofaccounts_count,
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user