mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-25 09:51:42 -05:00
a little complicated because the free_sms_fragment_limit comes from the annual_billing table. This relies on there always being at least one row for every service on annual billing - I checked on prod and that is true. Join to the annual billing table, then join to a subquery getting the latest year for that service to extract only the most recent year.