DB: use ver 1.16 for stop() requests 🐛, update integration test fixture

fixes #288
This commit is contained in:
Jannis R 2023-04-04 11:24:49 +02:00
parent 9d35d83c97
commit 8faf8ba507
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 150 additions and 136 deletions

View file

@ -33,6 +33,19 @@ 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',
})
}
return req
}
const slices = (n, arr) => {
const initialState = {slices: [], count: Infinity}
return arr.reduce(({slices, count}, item) => {
@ -493,6 +506,7 @@ const profile = {
addChecksum: true,
transformReqBody,
transformReq,
transformJourneysQuery,
products: products,

File diff suppressed because one or more lines are too long