fix: error user

This commit is contained in:
Methapon Metanipat 2024-09-09 16:13:21 +07:00
parent 1a804610bd
commit 4448d1d797
2 changed files with 2 additions and 0 deletions

View file

@ -850,6 +850,7 @@ export class BranchController extends Controller {
}
@Delete("{branchId}/image/{name}")
@Security("keycloak")
async deleteImageByName(
@Request() req: RequestWithUser,
@Path() branchId: string,

View file

@ -962,6 +962,7 @@ export class UserProfileController extends Controller {
}
@Delete("{name}")
@Security("keycloak")
async deleteImage(@Request() req: RequestWithUser, @Path() userId: string, @Path() name: string) {
await permissionCheck(req.user, userId);
await minio.removeObject(MINIO_BUCKET, fileLocation.user.profile(userId, name), {