Skip to content

Commit

Permalink
fix: fix null when compare value attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Sep 5, 2023
1 parent 512866f commit f849dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/job/reassign_msg_index_to_event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ export default class JobReAssignMsgIndexToEvent extends BullableService {
const checkIndex = event.attributes.every((attr: EventAttribute) => {
const decodedKey = rawEvents[index].attributes[attr.index].key
? fromUtf8(fromBase64(rawEvents[index].attributes[attr.index].key))
: null;
: '';
const decodedValue = rawEvents[index].attributes[attr.index].value
? fromUtf8(
fromBase64(rawEvents[index].attributes[attr.index].value)
)
: null;
: '';
return attr.key === decodedKey && attr.value === decodedValue;
});
if (!checkIndex) {
Expand Down

0 comments on commit f849dff

Please sign in to comment.