|
@@ -32,8 +32,8 @@ class LuticateGroupsDataAccess extends LuDataAccess {
|
32
|
32
|
}
|
33
|
33
|
public static function getUsers($group_id, $page = 0, $perPage = PHP_INT_MAX)
|
34
|
34
|
{
|
35
|
|
- $model = LuticateUsers::where("luticate_users.id", "=", "luticate_users_groups.user_id")
|
36
|
|
- ->join("luticate_users_groups", "luticate_users_groups.group_id", "=", $group_id);
|
|
35
|
+ $model = LuticateUsers::where("luticate_users_groups.group_id", "=", $group_id)
|
|
36
|
+ ->join("luticate_users_groups", "luticate_users.id", "=", "luticate_users_groups.user_id");
|
37
|
37
|
|
38
|
38
|
$count = $model->count();
|
39
|
39
|
|