mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
[bug] unable to export members list (#287)
This commit is contained in:
parent
f9b4c5520a
commit
a61a2e96d8
@ -1,5 +1,7 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
|
- Fix a bug: unable to export members list if no subscriptions was taken
|
||||||
|
|
||||||
## v5.0.6 2021 June 21
|
## v5.0.6 2021 June 21
|
||||||
|
|
||||||
- Updated babel and its dependencies to 7.14.5 / 7.14.6
|
- Updated babel and its dependencies to 7.14.5 / 7.14.6
|
||||||
|
@ -120,7 +120,7 @@ class API::MembersController < API::ApiController
|
|||||||
Profile.where(user_id: User.members).maximum('updated_at'),
|
Profile.where(user_id: User.members).maximum('updated_at'),
|
||||||
InvoicingProfile.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'),
|
StatisticProfile.where(user_id: User.members).maximum('updated_at'),
|
||||||
Subscription.maximum('updated_at')
|
Subscription.maximum('updated_at') || DateTime.current
|
||||||
].max
|
].max
|
||||||
|
|
||||||
export = Export.where(category: 'users', export_type: 'members')
|
export = Export.where(category: 'users', export_type: 'members')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user