json_file_get = async (req, res, next) => {
try {
var project_id = req.body.project_uuid;
const params = {
Bucket: '',
Key: "",
}
//const data = await s3.getObject(params).promise();
let readStream = s3.getObject(params).createReadStream();
console.log(CONFIG.BASE_PATH+'logs/one.json');
let writeStream = fs.createWriteStream(CONFIG.BASE_PATH+'logs/one.json');
readStream.pipe(writeStream);
} catch (e) {
return e
}
json_file_get = async (req, res, next) => {
try {
var project_id = req.body.project_uuid;
const params = {
Bucket: '',
Key: "",
}
//const data = await s3.getObject(params).promise();
let readStream = s3.getObject(params).createReadStream();
console.log(CONFIG.BASE_PATH+'logs/one.json');
let writeStream = fs.createWriteStream(CONFIG.BASE_PATH+'logs/one.json');
readStream.pipe(writeStream);
} catch (e) {
return e
}