Commit fb8faaeb by Pragati Upadhyay

finding bug on test server....

parent 136cc94d
...@@ -63,6 +63,7 @@ module.exports.createVideoFromImages = async function (imageArr, options) { ...@@ -63,6 +63,7 @@ module.exports.createVideoFromImages = async function (imageArr, options) {
////// to delete the frames that are created ////// ////// to delete the frames that are created //////
if (deleteImages) if (deleteImages)
frames.forEach((filePath) => { frames.forEach((filePath) => {
console.log("🚀 ~ frames.forEach ~ filePath:", filePath)
fs.access(filePath, fs.constants.F_OK, (err) => { fs.access(filePath, fs.constants.F_OK, (err) => {
if (!err) { if (!err) {
// File exists, proceed with deletion // File exists, proceed with deletion
......
...@@ -32,6 +32,7 @@ module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) { ...@@ -32,6 +32,7 @@ module.exports.uploadToAwsS3 = async function (localPath, remotePath, options) {
}); });
if (options && !options.preventUnlink) { if (options && !options.preventUnlink) {
console.log("🚀 ~ localPath:", localPath)
try { Fs.unlinkSync(localPath) } try { Fs.unlinkSync(localPath) }
catch (err) { console.log(err) } catch (err) { console.log(err) }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment