mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
18 lines
358 B
JavaScript
18 lines
358 B
JavaScript
'use strict'
|
|
|
|
const formatRefreshJourneyReq = (ctx, refreshToken) => {
|
|
const {profile, opt} = ctx
|
|
|
|
return {
|
|
meth: 'Reconstruction',
|
|
req: {
|
|
ctxRecon: refreshToken,
|
|
getIST: true, // todo: make an option
|
|
getPasslist: !!opt.stopovers,
|
|
getPolyline: !!opt.polylines,
|
|
getTariff: !!opt.tickets
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = formatRefreshJourneyReq
|