Skip to content

Commit

Permalink
Fix: force cozy-client-js stack version
Browse files Browse the repository at this point in the history
  • Loading branch information
sblaisot committed Nov 24, 2022
1 parent f211717 commit f1870ba
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 f1870ba

Please sign in to comment.