bucket_name:GWM

This commit is contained in:
sriramv 2023-03-11 12:40:31 +05:30
parent e76607be5f
commit f23156a45a

View File

@ -252,7 +252,7 @@ exports.GetCreditPdData = async (req, res) =>
const bucketName = process.env.GCP_BUCKET_NAME;
for(const PhotographsValue of data[0].dataValues.Photographs)
{
const fileName = 'credit_pd/pd'+PhotographsValue.ref_no+'/images/'+PhotographsValue.img;
const fileName = 'credit-pd/pd'+PhotographsValue.ref_no+'/images/'+PhotographsValue.img;
const options = {version: 'v2', action: 'read',expires: Date.now() + 1000 * 60 * 60, };
const [url] = await storage.bucket(bucketName).file(fileName).getSignedUrl(options);