Skip to content

Commit

Permalink
Merge pull request #22 from oroneta/fix_for_pro
Browse files Browse the repository at this point in the history
Change provider logic
  • Loading branch information
ZhengLinLei authored May 9, 2024
2 parents 73f65bc + 0cb0edd commit edadad3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/drone-api/controllers/provider.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logger from './logger.js';

// Import all migrations
export default class _ProviderComm {
#provider_host;
Expand Down Expand Up @@ -32,11 +34,12 @@ export default class _ProviderComm {
*/
async getProvider(dic, code, array) {
try {
logger.info(`${this.#provider_protocol}://${this.#provider_host}:${this.#provider_port}/route/${dic}`);
const response = await fetch(`${this.#provider_protocol}://${this.#provider_host}:${this.#provider_port}/route/${dic}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${code}`
'Authorization': `${code}`
},
body: JSON.stringify(array)
});
Expand Down

0 comments on commit edadad3

Please # to comment.