Closed pkoers closed 1 year ago
station = Station.find_by(iata_station_code: origin).id
The above code is causing an issue when it's NIL, maybe this can be fixed by a .nil? function.
.nil?
For now, the def has been disabled, not causing any further operational issues.
station = Station.find_by(iata_station_code: station).try(:id) station ||= 99999
This should work
It works, test passed, code has been committed
station = Station.find_by(iata_station_code: origin).id
The above code is causing an issue when it's NIL, maybe this can be fixed by a
.nil?
function.For now, the def has been disabled, not causing any further operational issues.