Skip to content

Commit 0078015

Browse files
committed
style(sqs): format messageGroupId assignment for improved readability
1 parent b514fab commit 0078015

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/api/integrations/event/sqs/sqs.controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ export class SqsController extends EventController implements EventControllerInt
163163
message.dataType = 's3';
164164
}
165165

166-
const messageGroupId = sqsConfig.GLOBAL_ENABLED ? `${serverConfig.NAME}-${eventFormatted}-${instanceName}` : 'evolution';
166+
const messageGroupId = sqsConfig.GLOBAL_ENABLED
167+
? `${serverConfig.NAME}-${eventFormatted}-${instanceName}`
168+
: 'evolution';
167169
const isGlobalEnabled = sqsConfig.GLOBAL_ENABLED;
168170
const params = {
169171
MessageBody: JSON.stringify(message),

src/config/env.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export class ConfigService {
536536
REMOVE_INSTANCE: process.env?.SQS_GLOBAL_REMOVE_INSTANCE === 'true',
537537
SEND_MESSAGE: process.env?.SQS_GLOBAL_SEND_MESSAGE === 'true',
538538
TYPEBOT_CHANGE_STATUS: process.env?.SQS_GLOBAL_TYPEBOT_CHANGE_STATUS === 'true',
539-
TYPEBOT_START: process.env?.SQS_GLOBAL_TYPEBOT_START === 'true'
539+
TYPEBOT_START: process.env?.SQS_GLOBAL_TYPEBOT_START === 'true',
540540
},
541541
},
542542
WEBSOCKET: {

0 commit comments

Comments
 (0)