Skip to content

Commit

Permalink
Merge pull request #889 from konnectors/cozy-client-js-version
Browse files Browse the repository at this point in the history
Fix: force cozy-client-js stack version
  • Loading branch information
LucsT authored Nov 24, 2022
2 parents f211717 + f1870ba commit 2eac888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cozy-konnector-libs/src/libs/cozyclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ const cozyClient = getCozyClient(
)

function cozyClientJsFromEnv(cozyURL) {
const options = { cozyURL }
// version is hardcoded to 3 here to avoid fetching instance's /status looking for obsolete nodezy
const options = {
cozyURL,
version: 3
}
let jsonCredentials = null
if (process.env.COZY_CREDENTIALS) {
try {
Expand Down

0 comments on commit 2eac888

Please sign in to comment.