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

@@ -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
async exportDocument(id: string) {
// get all pages