mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Update the query
This commit is contained in:
@@ -166,8 +166,7 @@ def billing_letter_data_per_month_query(service_id, start_date, end_date):
|
|||||||
LetterRate.sheet_count == NotificationHistory.billable_units,
|
LetterRate.sheet_count == NotificationHistory.billable_units,
|
||||||
LetterRate.crown == crown,
|
LetterRate.crown == crown,
|
||||||
LetterRate.post_class == 'second',
|
LetterRate.post_class == 'second',
|
||||||
NotificationHistory.created_at < end_date,
|
NotificationHistory.created_at < end_date
|
||||||
|
|
||||||
).group_by(
|
).group_by(
|
||||||
NotificationHistory.notification_type,
|
NotificationHistory.notification_type,
|
||||||
month,
|
month,
|
||||||
|
|||||||
Reference in New Issue
Block a user