1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] unable to export members list (#287)

This commit is contained in:
Sylvain 2021-06-21 12:07:59 +02:00
parent f9b4c5520a
commit a61a2e96d8
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to export members list if no subscriptions was taken
## v5.0.6 2021 June 21
- Updated babel and its dependencies to 7.14.5 / 7.14.6

View File

@ -120,7 +120,7 @@ class API::MembersController < API::ApiController
Profile.where(user_id: User.members).maximum('updated_at'),
InvoicingProfile.where(user_id: User.members).maximum('updated_at'),
StatisticProfile.where(user_id: User.members).maximum('updated_at'),
Subscription.maximum('updated_at')
Subscription.maximum('updated_at') || DateTime.current
].max
export = Export.where(category: 'users', export_type: 'members')