Fix Group resource returning null twofaccounts_count

This commit is contained in:
Bubka 2021-11-13 11:19:37 +01:00
parent b6a5ce6677
commit ca4b16a7cc

View File

@ -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,
];
}
}