Skip to content

Commit

Permalink
fix: import cloudinary from nest-cloudinary
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Dec 31, 2022
1 parent b0438c6 commit 15842de
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 143 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"joi": "^17.7.0",
"jsdom": "^20.0.3",
"nanoid": "^4.0.0",
"nestjs-cloudinary": "^1.0.2",
"nestjs-i18n": "^10.2.3",
"nestjs-minio": "^2.3.0",
"nestjs-pino": "^3.1.1",
Expand All @@ -77,7 +78,7 @@
"pino-pretty": "^9.1.1",
"poolifier": "^2.3.7",
"preview-email": "^3.0.7",
"prom-client": "^14.1.0",
"prom-client": "^14.1.1",
"pug": "^3.0.2",
"reflect-metadata": "0.1.13",
"rxjs": "^7.8.0",
Expand Down
28 changes: 21 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions src/lib/cloudinary/cloudinary.module-definition.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/cloudinary/cloudinary.module.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib/cloudinary/cloudinary.options.ts

This file was deleted.

98 changes: 0 additions & 98 deletions src/lib/cloudinary/cloudinary.service.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/cloudinary/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NestConfigModule } from "@lib/config/config.module";
import { Module } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";

import { CloudinaryModule } from "./cloudinary.module";
import { CloudinaryModule } from "nestjs-cloudinary";

@Module({
imports: [
Expand Down
4 changes: 2 additions & 2 deletions src/lib/jwt/jwt.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Global, Module } from "@nestjs/common";
import { Module } from "@nestjs/common";
import { ConfigModule, ConfigService } from "@nestjs/config";
import { JwtModule } from "@nestjs/jwt";

@Global()
@Module({
exports: [JwtModule],
imports: [
JwtModule.registerAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
isGlobal: true,
secret: configService.get("jwt.secret"),
signOptions: {
expiresIn: configService.get("jwt.accessExpiry"),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BaseRepository } from "@common/database/base.repository";
import { EmailTemplateEnum } from "@common/types/enums/misc.enum";
import { User } from "@entities";
import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
import { CloudinaryService } from "@lib/cloudinary/cloudinary.service";
import { CloudinaryService } from "nestjs-cloudinary";
import { createPaginationObject, Pagination } from "@lib/pagination";
import { EntityManager } from "@mikro-orm/core";
import { InjectRepository } from "@mikro-orm/nestjs";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"target": "ES2022",
"sourceMap": true,
"jsx": "react",
"esModuleInterop": true,
Expand Down

0 comments on commit 15842de

Please sign in to comment.