Use ParksByState to query alerts more efficiently
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user