update logic upload file and get centerstaff
This commit is contained in:
@@ -41,10 +41,10 @@ export class MinioService {
|
||||
return url;
|
||||
}
|
||||
|
||||
async deleteFile(fileName: string) {
|
||||
async deleteFile(fileName: string, category: string) {
|
||||
return await this.minioClient.removeObject(
|
||||
this.configService.get('BUCKET_NAME') ?? 'epess',
|
||||
fileName,
|
||||
`${category}/${fileName}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user