update minio endpoint
This commit is contained in:
@@ -28,12 +28,14 @@ export class MinioService {
|
||||
}
|
||||
|
||||
async getFileUrl(fileName: string, category: string) {
|
||||
return await this.minioClient.presignedUrl(
|
||||
const url = await this.minioClient.presignedUrl(
|
||||
'GET',
|
||||
this.configService.get('BUCKET_NAME') ?? 'epess',
|
||||
`${category}/${fileName}`,
|
||||
3600,
|
||||
);
|
||||
// replace the url with the url with actual url
|
||||
return url;
|
||||
}
|
||||
|
||||
async deleteFile(fileName: string) {
|
||||
|
||||
Reference in New Issue
Block a user