Skip to content

Commit

Permalink
fix: upgrade all nest dependencies (#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludtkemorgan committed Jun 1, 2023
1 parent 2311b7b commit b9f6ba0
Show file tree
Hide file tree
Showing 3 changed files with 650 additions and 410 deletions.
30 changes: 15 additions & 15 deletions backend/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
"@anchan828/nest-sendgrid": "^0.3.25",
"@google-cloud/translate": "^6.2.6",
"@nestjs/axios": "1.0.1",
"@nestjs/cli": "^8.2.1",
"@nestjs/common": "9.3.7",
"@nestjs/config": "^1.2.0",
"@nestjs/core": "9.3.7",
"@nestjs/jwt": "^8.0.0",
"@nestjs/passport": "9.0.3",
"@nestjs/platform-express": "9.3.9",
"@nestjs/schedule": "^2.1.0",
"@nestjs/swagger": "5.2.0",
"@nestjs/throttler": "^2.0.0",
"@nestjs/typeorm": "9.0.1",
"@nestjs/cli": "^9.5.0",
"@nestjs/common": "^9.4.2",
"@nestjs/config": "^2.3.2",
"@nestjs/core": "^9.4.2",
"@nestjs/jwt": "^10.0.3",
"@nestjs/passport": "^9.0.3",
"@nestjs/platform-express": "^9.4.2",
"@nestjs/schedule": "^2.2.2",
"@nestjs/swagger": "^6.3.0",
"@nestjs/throttler": "^4.0.0",
"@nestjs/typeorm": "^9.0.1",
"@types/cache-manager": "^3.4.0",
"async-retry": "^1.3.1",
"axios": "0.21.2",
Expand All @@ -70,8 +70,8 @@
"jszip": "^3.10.1",
"lodash": "^4.17.21",
"nanoid": "^3.1.12",
"nestjs-twilio": "^2.1.0",
"nestjs-typeorm-paginate": "4.0.2",
"nestjs-twilio": "^4.1.1",
"nestjs-typeorm-paginate": "^4.0.3",
"newrelic": "7.5.1",
"node-polyglot": "^2.4.0",
"passport": "^0.6.0",
Expand All @@ -93,8 +93,8 @@
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@nestjs/schematics": "^8.0.7",
"@nestjs/testing": "9.3.9",
"@nestjs/schematics": "^9.2.0",
"@nestjs/testing": "^9.4.2",
"@types/axios": "^0.14.0",
"@types/cookie-parser": "1.4.3",
"@types/cron": "^1.7.3",
Expand Down
9 changes: 5 additions & 4 deletions backend/core/src/auth/services/sms-mfa.service.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { Injectable } from "@nestjs/common"
import { User } from "../entities/user.entity"
import { InjectTwilio, TwilioClient } from "nestjs-twilio"
import { TwilioService } from "nestjs-twilio"
import { ConfigService } from "@nestjs/config"

@Injectable()
export class SmsMfaService {
public constructor(
@InjectTwilio() private readonly client: TwilioClient,
private readonly twilioService: TwilioService,
private readonly configService: ConfigService
) {}
public async sendMfaCode(user: User, phoneNumber: string, mfaCode: string) {
return await this.client.messages.create({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public async sendMfaCode(user: User, phoneNumber: string, mfaCode: string): Promise<any> {
return await this.twilioService.client.messages.create({
body: `Your Partners Portal account access token: ${mfaCode}`,
from: this.configService.get("TWILIO_PHONE_NUMBER"),
to: phoneNumber,
Expand Down
Loading

0 comments on commit b9f6ba0

Please sign in to comment.