Skip to content

Commit 989a7ba

Browse files
committed
Send EOR list to service only if one was added
1 parent a50030e commit 989a7ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/server/kafka/AliEcsSynchronizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class AliEcsSynchronizer {
101101
{ timeO2End: timestamp.toNumber() },
102102
{
103103
userO2Stop: { userIdentifier: { externalUserId }, name: userName },
104-
eorReasons,
104+
...eorReasons?.length > 0 ? { eorReasons } : {},
105105
},
106106
)
107107
.catch((error) => this._logger.errorMessage(`Failed to save run end for ${runNumber}: ${error.message}`));

0 commit comments

Comments
 (0)