From 02cd8c26c72c72f69f1e94954eeb205df6b38929 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 18 Nov 2017 14:14:19 -0700 Subject: [PATCH] Minor fix --- core/oputil/oputil_file_base.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/oputil/oputil_file_base.js b/core/oputil/oputil_file_base.js index 835db5b9..a00f0889 100644 --- a/core/oputil/oputil_file_base.js +++ b/core/oputil/oputil_file_base.js @@ -173,7 +173,7 @@ function scanFileAreaForChanges(areaInfo, options, cb) { // We'll update the entry if the following conditions are met: // * We have a single duplicate, and: // * --update was passed or the existing entry's desc, - // longDesc, or yearEst are blank/empty + // longDesc, or est_release_year meta are blank/empty // if(argv.update && 1 === dupeEntries.length) { const FileEntry = require('../../core/file_entry.js'); @@ -205,7 +205,11 @@ function scanFileAreaForChanges(areaInfo, options, cb) { // don't allow overwrite of values if new version is blank existingEntry.desc = fileEntry.desc || existingEntry.desc; existingEntry.descLong = fileEntry.descLong || existingEntry.descLong; - existingEntry.meta.est_release_year = fileEntry.meta.est_release_year || existingEntry.meta.est_release_year; + + if(fileEntry.meta.est_release_year) { + existingEntry.meta.est_release_year = fileEntry.meta.est_release_year; + } + updateTags(existingEntry); finalizeEntryAndPersist(true, existingEntry, descHandler, err => {