feat: add listRecords method to MinioService and update start:dev script in package.json

- Introduced a new method `listRecords` in MinioService for listing objects in a specified room's records.
- Updated the `start:dev` script in package.json to remove debugging options for a cleaner development experience.
This commit is contained in:
2024-12-05 17:13:11 +07:00
parent 74656dd4d9
commit ac2014079f
2 changed files with 5 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
"build": "nest build", "build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start", "start": "nest start",
"start:dev": "nest start --watch --inspect --debug", "start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch", "start:debug": "nest start --debug --watch",
"start:prod": "node dist/main", "start:prod": "node dist/main",
"prisma:generate": "npx prisma generate --schema=./epess-database/prisma/schema.prisma", "prisma:generate": "npx prisma generate --schema=./epess-database/prisma/schema.prisma",

View File

@@ -123,6 +123,10 @@ export class MinioService {
}) })
}) })
} }
listRecords(roomId: string) {
return this.minioClient.listObjects(this.configService.get('BUCKET_NAME') ?? 'epess', `records/${roomId}`)
}
// export document to docx format by get all pages and convert to docx // export document to docx format by get all pages and convert to docx
async exportDocument(id: string) { async exportDocument(id: string) {
// get all pages // get all pages