From ec3d5777e99dc5b7baeb6456dfe57f3660884dbc Mon Sep 17 00:00:00 2001 From: Guille Date: Thu, 9 May 2024 16:26:05 +0200 Subject: [PATCH] Correct endpoint --- workflows/meb/module/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflows/meb/module/module.js b/workflows/meb/module/module.js index 1ab7798..806db3e 100644 --- a/workflows/meb/module/module.js +++ b/workflows/meb/module/module.js @@ -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')