diff --git a/controller/Bus.js b/controller/Bus.js index 1d3bae4..dfecde6 100644 --- a/controller/Bus.js +++ b/controller/Bus.js @@ -166,7 +166,7 @@ async function afun9025(param) { async function route(param) { if (param.buses.toString() === ['9025A'].toString()) return afun9025(param); - if (![['132'], ['133'], ['132', '133'], ['172'], ['173'], ['172', '173']].includes(param.buses)) { + if (![['132'], ['133'], ['132', '133'], ['172'], ['173'], ['172', '173']].some(valid => valid.join() === param.buses.join())) { throw new Error('Invalid Buses: ' + param.buses.join(' ')); }