bucket_name_change:GWM

This commit is contained in:
sriramv 2023-03-09 09:06:03 +05:30
parent 77d4d7e445
commit f5ccba98f4

View File

@ -601,7 +601,7 @@ exports.SectionList = async (req, res) =>
{
ImageData = [];
const storage = new Storage({ keyFilename : path.join(__dirname, "../../googleCloud.json") });
const bucketName = 'sales-pd';
const bucketName = process.env.GCP_BUCKET_NAME;
for(const PhotographsValue of data[0].dataValues.Photographs)
{
const fileName = 'pd'+PhotographsValue.ref_no+'/images/'+PhotographsValue.img;