diff --git a/CHANGELOG.md b/CHANGELOG.md index 789f30438..b1f794d83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - admin can see reservations of a member - Fix a bug: unable to update card for payment schedule - Fix a bug: user is_allow_contact is actived by default +- Fix a bug: unbale to export projects ## v6.0.14 2023 September 6 diff --git a/app/services/project_service.rb b/app/services/project_service.rb index be85c3cd2..1c3e6628f 100644 --- a/app/services/project_service.rb +++ b/app/services/project_service.rb @@ -46,7 +46,8 @@ class ProjectService records = records.includes(:users, :project_image) records = records.page(params[:page]) if paginate + total = paginate ? records.total_count : records.count - { total: records.total_count, projects: records } + { total: total, projects: records } end end