Use ParksByState to query alerts more efficiently

This commit is contained in:
2025-10-08 08:48:33 -07:00
parent b4f45bf5c8
commit fcbc513676
2 changed files with 8 additions and 5 deletions

View File

@@ -7,8 +7,8 @@ class NpsClient
conn.get('parks', { start: offset })
end
def alerts(park_code:, offset: 0)
conn.get('alerts', { parkCode: park_code, start: offset })
def alerts(state:, offset: 0)
conn.get('alerts', { stateCode: state, start: offset })
end
private