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:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user