- fix the result value of '/api/exports/' api
Change-Id: Ibb5b71edfb3e0aefc782666b9ef941244933c21d
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
data += chunk;
});
ticCoreRes.on('end', function () {
+ data = data.replace(AppConfig.TIC_WEB.PATH, AppConfig.TIC_WEB.PATH_ABSTRACT);
res.send(data);
});
});
if (res.result === 'false') {
return Promise.reject(res.message);
} else {
- var recipePath = res.data.path.replace('var/tmp/tic-web', 'tic');
- $('#tic-export-recipe').attr('href', recipePath)[0].click();
+ $('#tic-export-recipe').attr('href', res.data.path)[0].click();
}
})
.catch(function (err) {