mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Script and code cleanup.
This commit is contained in:
@@ -117,7 +117,7 @@ class UpdateGroupInformation extends Command
|
||||
private function updateGroupInfoForObject(User $user, UserGroup $group, string $className): void
|
||||
{
|
||||
try {
|
||||
$result = $className::where('user_id', $user->id)->where('user_group_id', null)->update(['user_group_id' => $group->id]);
|
||||
$result = $className::where('user_id', $user->id)->where('user_group_id', null)->update(['user_group_id' => $group->id]);
|
||||
} catch(QueryException $e) {
|
||||
$this->error(sprintf('Could not update group information for "%s" because of error "%s"', $className, $e->getMessage()));
|
||||
return;
|
||||
|
Reference in New Issue
Block a user