style(sqs): format messageGroupId assignment for improved readability

This commit is contained in:
Davidson Gomes
2025-09-17 14:27:14 -03:00
parent b514fab30e
commit 00780157db
2 changed files with 4 additions and 2 deletions

View File

@@ -163,7 +163,9 @@ export class SqsController extends EventController implements EventControllerInt
message.dataType = 's3'; message.dataType = 's3';
} }
const messageGroupId = sqsConfig.GLOBAL_ENABLED ? `${serverConfig.NAME}-${eventFormatted}-${instanceName}` : 'evolution'; const messageGroupId = sqsConfig.GLOBAL_ENABLED
? `${serverConfig.NAME}-${eventFormatted}-${instanceName}`
: 'evolution';
const isGlobalEnabled = sqsConfig.GLOBAL_ENABLED; const isGlobalEnabled = sqsConfig.GLOBAL_ENABLED;
const params = { const params = {
MessageBody: JSON.stringify(message), MessageBody: JSON.stringify(message),

View File

@@ -536,7 +536,7 @@ export class ConfigService {
REMOVE_INSTANCE: process.env?.SQS_GLOBAL_REMOVE_INSTANCE === 'true', REMOVE_INSTANCE: process.env?.SQS_GLOBAL_REMOVE_INSTANCE === 'true',
SEND_MESSAGE: process.env?.SQS_GLOBAL_SEND_MESSAGE === 'true', SEND_MESSAGE: process.env?.SQS_GLOBAL_SEND_MESSAGE === 'true',
TYPEBOT_CHANGE_STATUS: process.env?.SQS_GLOBAL_TYPEBOT_CHANGE_STATUS === 'true', TYPEBOT_CHANGE_STATUS: process.env?.SQS_GLOBAL_TYPEBOT_CHANGE_STATUS === 'true',
TYPEBOT_START: process.env?.SQS_GLOBAL_TYPEBOT_START === 'true' TYPEBOT_START: process.env?.SQS_GLOBAL_TYPEBOT_START === 'true',
}, },
}, },
WEBSOCKET: { WEBSOCKET: {