Skip to content

Commit

Permalink
add role end date to user search api
Browse files Browse the repository at this point in the history
  • Loading branch information
ipula committed Feb 11, 2025
1 parent 911d1b9 commit d4dc2b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/user/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ protected function mapByProperties(array $props, User $user, array $auxiliaryDat
'recommendOnly' => (bool) $userGroup->recommendOnly,
'dateStart' => UserUserGroup::withUserId($user->getId())
->withUserGroupIds([$userGroup->id])
->pluck('date_start')->first()
->pluck('date_start')->first(),
'dateEnd' => UserUserGroup::withUserId($user->getId())
->withUserGroupIds([$userGroup->id])
->pluck('date_end')->first(),
];
}
}
Expand Down

0 comments on commit d4dc2b0

Please sign in to comment.