New lib works in more cases than before

This commit is contained in:
Manav Rathi
2024-07-26 14:46:35 +05:30
parent d9a8eafbe3
commit 689d3c4c82

View File

@@ -12,13 +12,13 @@ export const cmpNewLib = (
newLib: ParsedExif,
) => {
if (
oldLib.width == newLib.width &&
oldLib.height == newLib.height &&
oldLib.creationTime == newLib.creationTime &&
oldLib.location.latitude == newLib.location?.latitude &&
oldLib.location.longitude == newLib.location?.longitude
) {
log.info("Exif migration 🟢");
if (oldLib.width == newLib.width && oldLib.height == newLib.height)
log.info("Exif migration ✅");
else log.info("Exif migration 🟢");
log.debug(() => ["exif/cmp", { oldLib, newLib }]);
} else {
log.info("Exif migration - Potential mismatch ❗️🚩");