File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ if (process.env.ENV !== "production") {
77 process . env . ENV === "local" ? ".env.local" : ".env"
88 ) ,
99 } )
10+ } else {
11+ console . log ( "Running in production mode, skipping .env loading" )
12+ console . log ( "Queues are: " , process . env . INCOMING_MESSAGE_FIFO_URL , process . env . RECOGNIZED_MESSAGE_FIFO_URL )
1013}
1114
1215const { Client, LocalAuth } = require ( "whatsapp-web.js" )
@@ -266,7 +269,7 @@ async function uploadMediaToS3(message, media) {
266269}
267270
268271const consumer = Consumer . create ( {
269- queueUrl : process . env . RECOGNIZED_MESSAGES_FIFO_URL ,
272+ queueUrl : process . env . RECOGNIZED_MESSAGE_FIFO_URL ,
270273 sqs : sqsClient ,
271274 suppressFifoWarning : true ,
272275 handleMessage : async ( sqsMessage ) => {
You can’t perform that action at this time.
0 commit comments