Skip to content

Commit

Permalink
Merge pull request #583 from deivisonrpg/chore-update-aws-sdk-v3
Browse files Browse the repository at this point in the history
chore(aws sqs): update aws sdk v3
  • Loading branch information
DavidsonGomes authored May 8, 2024
2 parents 60a20f6 + aa58d77 commit 11cf947
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@hapi/boom": "^10.0.1",
"@sentry/node": "^7.59.2",
"amqplib": "^0.10.3",
"aws-sdk": "^2.1499.0",
"@aws-sdk/client-sqs": "^3.569.0",
"axios": "^1.6.5",
"baileys": "^6.7.2",
"class-validator": "^0.14.1",
Expand Down
9 changes: 6 additions & 3 deletions src/api/integrations/sqs/libs/sqs.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SQS } from 'aws-sdk';
import { SQS } from '@aws-sdk/client-sqs';

import { configService, Sqs } from '../../../../config/env.config';
import { Logger } from '../../../../config/logger.config';
Expand All @@ -12,8 +12,11 @@ export const initSQS = () => {
return new Promise<void>((resolve, reject) => {
const awsConfig = configService.get<Sqs>('SQS');
sqs = new SQS({
accessKeyId: awsConfig.ACCESS_KEY_ID,
secretAccessKey: awsConfig.SECRET_ACCESS_KEY,
credentials: {
accessKeyId: awsConfig.ACCESS_KEY_ID,
secretAccessKey: awsConfig.SECRET_ACCESS_KEY,
},

region: awsConfig.REGION,
});

Expand Down

0 comments on commit 11cf947

Please sign in to comment.