Correct endpoint

This commit is contained in:
Guille 2024-05-09 16:26:05 +02:00
parent 2f8b205b22
commit ec3d5777e9

View File

@ -3,7 +3,7 @@ const fs = require('fs')
const { Blob } = require('buffer')
const dotenv = require('dotenv')
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
const insel_meb = https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance
const insel_meb = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance'
exports.run = async (application, param, tmp_path) => {
@ -21,7 +21,7 @@ exports.run = async (application, param, tmp_path) => {
'application-uuid': application_uuid,
'accept': 'application/json'
}
});
})
if (response.status == 200) {
const session_id = response.headers.get('session_id')
let token = response.headers.get('token')