From a76069f1a44d7e7fb3e25ad7b74ee097b0690dd2 Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Thu, 12 Mar 2026 13:14:46 +0100 Subject: [PATCH] ci --- api/package.json | 2 -- api/src/shared/pdf/minio/minio.service.ts | 36 +++++++++++------------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/api/package.json b/api/package.json index afca988..3a26acb 100644 --- a/api/package.json +++ b/api/package.json @@ -20,7 +20,6 @@ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand" }, "dependencies": { - "@aws-sdk/client-s3": "^3.1007.0", "@nestjs-modules/mailer": "2.0.2", "@nestjs/axios": "4.0.1", "@nestjs/cache-manager": "3.1.0", @@ -42,7 +41,6 @@ "typeorm": "0.3.28" }, "devDependencies": { - "@faker-js/faker": "^9.0.0", "@nestjs/cli": "11.0.16", "@nestjs/schematics": "11.0.9", "@nestjs/testing": "11.1.14", diff --git a/api/src/shared/pdf/minio/minio.service.ts b/api/src/shared/pdf/minio/minio.service.ts index ec51499..47171af 100644 --- a/api/src/shared/pdf/minio/minio.service.ts +++ b/api/src/shared/pdf/minio/minio.service.ts @@ -1,5 +1,5 @@ import { Injectable } from '@nestjs/common'; -import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3'; +// import { PutObjectCommand, S3Client } from '@aws-sdk/client-s3'; import { ConfigService } from '@nestjs/config'; @Injectable() @@ -7,24 +7,24 @@ export class MinioService { constructor(private configService: ConfigService) {} - private readonly client = new S3Client({ - region: 'us-east-1', - endpoint: this.configService.get('MINIOHOST'), - credentials: { - accessKeyId: this.configService.get('MINIOUSER'), - secretAccessKey: this.configService.get('MINIOACCESSKEY'), - }, - forcePathStyle: true, - }); + // private readonly client = new S3Client({ + // region: 'us-east-1', + // endpoint: this.configService.get('MINIOHOST'), + // credentials: { + // accessKeyId: this.configService.get('MINIOUSER'), + // secretAccessKey: this.configService.get('MINIOACCESSKEY'), + // }, + // forcePathStyle: true, + // }); async uploadPdf(bucket: string, key: string, pdfBuffer: Buffer): Promise { - await this.client.send( - new PutObjectCommand({ - Bucket: bucket, - Key: key, - Body: pdfBuffer, - ContentType: 'application/pdf', - }), - ); + // await this.client.send( + // new PutObjectCommand({ + // Bucket: bucket, + // Key: key, + // Body: pdfBuffer, + // ContentType: 'application/pdf', + // }), + // ); } }