Skip to content

Commit

Permalink
[TECH] Mise à jour de l'environnement
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 8, 2022
2 parents 8037b64 + 00676ab commit a09a6ce
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 239 deletions.
4 changes: 2 additions & 2 deletions common/services/scalingo-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class ScalingoClient {
this.environment = environment;
}

static async getInstance(environment) {
static async getInstance(environment, injectedClient = scalingo) {
const { token, apiUrl } = config.scalingo[environment];
const client = await scalingo.clientFromToken(token, { apiUrl });
const client = await injectedClient.clientFromToken(token, { apiUrl });
return new ScalingoClient(client, environment);
}

Expand Down
Loading

0 comments on commit a09a6ce

Please sign in to comment.