mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-23 12:09:00 -06:00
style(sqs): format messageGroupId assignment for improved readability
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user