update logic upload file and get centerstaff

This commit is contained in:
2024-10-17 00:52:50 +07:00
parent dddc61411f
commit 8b56334ac9
4 changed files with 162 additions and 2 deletions

View File

@@ -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}`,
);
}