fix: error user
This commit is contained in:
parent
1a804610bd
commit
4448d1d797
2 changed files with 2 additions and 0 deletions
|
|
@ -850,6 +850,7 @@ export class BranchController extends Controller {
|
|||
}
|
||||
|
||||
@Delete("{branchId}/image/{name}")
|
||||
@Security("keycloak")
|
||||
async deleteImageByName(
|
||||
@Request() req: RequestWithUser,
|
||||
@Path() branchId: string,
|
||||
|
|
|
|||
|
|
@ -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), {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue