Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d5ca3ce

Browse files
don't add nulls
1 parent c45913b commit d5ca3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ async function processUpdate (message) {
694694
for (const metadataKey of _.keys(constants.supportedMetadata)) {
695695
try {
696696
metaValue = constants.supportedMetadata[metadataKey].method(message.payload, constants.supportedMetadata[metadataKey].defaultValue)
697-
if (metaValue !== null) {
697+
if (metaValue !== null && metaValue !== '') {
698698
logger.info(`Setting ${constants.supportedMetadata[metadataKey].description} to ${metaValue}`)
699699
await metadataService.createOrUpdateMetadata(legacyId, metadataKey, metaValue, _.get(message, 'payload.updatedBy') || _.get(message, 'payload.createdBy'))
700700
}

0 commit comments

Comments
 (0)