diff --git a/app/controllers/creditpd.controller.js b/app/controllers/creditpd.controller.js index f041423..9e08ba5 100644 --- a/app/controllers/creditpd.controller.js +++ b/app/controllers/creditpd.controller.js @@ -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);