Skip to content

Commit

Permalink
fix: bug while validating message (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega authored Mar 29, 2024
1 parent 9f5ceb4 commit 1c47192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer-server/src/logic/message-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function createMessageProcesorComponent({
}

function isInvalid(message: QueueMessage): boolean {
return message.entity.entityType !== 'scene' && !message.entity.metadata?.scene?.base && !message.entity.entityId
return message.entity.entityType !== 'scene' || !message.entity.metadata?.scene?.base || !message.entity.entityId
}

async function process(message: QueueMessage, receiptMessageHandle: string): Promise<void> {
Expand Down

0 comments on commit 1c47192

Please sign in to comment.