diff --git a/server/scanner.js b/server/scanner.js index 0eabebc..095c6ae 100755 --- a/server/scanner.js +++ b/server/scanner.js @@ -607,10 +607,9 @@ function findOrUpdateDBAsset(transaction, asset) { /* If the size on disk changed, update the size entry in the DB. This shouldn't happen in * production unless someone modifies the file, then re-stamps the modified time */ if (asset.size != results[0].size) { - return photoDB.sequelize.query("UPDATE photos SET size=:size WHERE id=:id", { - replacements: asset, - transaction: transaction - }); + console.log("File was modified with time-restamp (HASH regeneration will be queued): " + asset.filename); + delete asset.scanned; + delete asset.modified; } }).then(function() { return asset;