05/11/2022
url.format deprecated

this function is deprecated

url.format({
    pathname: `/${req.locale}/v/${visite.id}`,
    query: { confirm: true, adduser: true, visits: [visite.id], users: users.map((x) => x.id) },
})

this achieve the same goal

const urlparams = { confirm: true, adduser: true, visits: [visite.id], users: users.map((x) => x.id) };
`/${req.locale}/v/${visite.id}?${new URLSearchParams(urlparams).toString() }`;