bucket_name:GWM
This commit is contained in:
parent
ca096c5d73
commit
e76607be5f
@ -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 = 'creditPD/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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user