File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/api/integrations/sqs/libs Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 4747 "@hapi/boom" : " ^10.0.1" ,
4848 "@sentry/node" : " ^7.59.2" ,
4949 "amqplib" : " ^0.10.3" ,
50- "aws-sdk" : " ^2.1499 .0" ,
50+ "@ aws-sdk/client-sqs " : " ^3.569 .0" ,
5151 "axios" : " ^1.6.5" ,
5252 "baileys" : " ^6.7.2" ,
5353 "class-validator" : " ^0.14.1" ,
Original file line number Diff line number Diff line change 1- import { SQS } from 'aws-sdk' ;
1+ import { SQS } from '@ aws-sdk/client-sqs ' ;
22
33import { configService , Sqs } from '../../../../config/env.config' ;
44import { Logger } from '../../../../config/logger.config' ;
@@ -12,8 +12,11 @@ export const initSQS = () => {
1212 return new Promise < void > ( ( resolve , reject ) => {
1313 const awsConfig = configService . get < Sqs > ( 'SQS' ) ;
1414 sqs = new SQS ( {
15- accessKeyId : awsConfig . ACCESS_KEY_ID ,
16- secretAccessKey : awsConfig . SECRET_ACCESS_KEY ,
15+ credentials : {
16+ accessKeyId : awsConfig . ACCESS_KEY_ID ,
17+ secretAccessKey : awsConfig . SECRET_ACCESS_KEY ,
18+ } ,
19+
1720 region : awsConfig . REGION ,
1821 } ) ;
1922
You can’t perform that action at this time.
0 commit comments