Commit 0aa77107 authored by Cory Bryant's avatar Cory Bryant

remove utime, causing invalid dates

parent e47ca673
......@@ -67,10 +67,10 @@ module.exports=function s3BackedRenditions(config, $){
cb(msg);
} else {
if (lastModifiedTime && headers['etag'].replace(/["]+/g, '') === md5File.sync(params.renditionPathOnDisk)) {
fs.utimes(params.renditionPathOnDisk, lastModifiedTime, lastModifiedTime, ()=>{
//fs.utimes(params.renditionPathOnDisk, lastModifiedTime, lastModifiedTime, ()=>{
log.info("Got s3 rendition", params.renditionPath);
cb(null, lastModifiedTime);
});
//});
} else {
fs.unlinkSync(params.renditionPathOnDisk);
msg = `Error downloading rendition from s3 Bucket: ${s3conf.bucket} Path: ${params.renditionPath}, hashes don't match`;
......
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