DB: remove stop() v1.16 workaround

Also, `LocGeoPos`/nearby() doesn't seem to break with `getStops: false` anymore.
This commit is contained in:
Jannis R 2024-07-15 19:28:06 +02:00
parent 1a0b595a71
commit 97268d7a8a
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 5 additions and 21 deletions

View file

@ -41,21 +41,6 @@ const transformReqBody = (ctx, body) => {
return body;
};
const transformReq = (ctx, req) => {
const body = JSON.parse(req.body);
// stop() a.k.a. LocDetails seems broken with ver >1.16, all other methods work
if (body.svcReqL[0].meth === 'LocDetails') {
req.body = JSON.stringify({
...body,
ver: '1.16',
});
}
// todo: `LocGeoPos`/nearby() breaks with `getStops: false`
return req;
};
const slices = (n, arr) => {
const initialState = {slices: [], count: Infinity};
return arr.reduce(({slices, count}, item) => {
@ -674,7 +659,6 @@ const profile = {
addChecksum: true,
transformReqBody,
transformReq,
transformJourneysQuery,
formatRefreshJourneyReq,

File diff suppressed because one or more lines are too long