Issue fixing + deletion of profile & logo
This commit is contained in:
@@ -64,11 +64,11 @@ export class ImageController {
|
||||
this.fileService.deleteImage(`pictures/property/${imagePath}/${imagename}`);
|
||||
}
|
||||
@Delete('logo/:userid/')
|
||||
async deleteLogoImagesById(@Param('id') id: string): Promise<any> {
|
||||
this.fileService.deleteImage(`pictures/property/${id}`);
|
||||
async deleteLogoImagesById(@Param('userid') userid: string): Promise<any> {
|
||||
this.fileService.deleteImage(`pictures/logo/${userid}.avif`);
|
||||
}
|
||||
@Delete('profile/:userid/')
|
||||
async deleteProfileImagesById(@Param('id') id: string): Promise<any> {
|
||||
this.fileService.deleteImage(`pictures/property/${id}`);
|
||||
async deleteProfileImagesById(@Param('userid') userid: string): Promise<any> {
|
||||
this.fileService.deleteImage(`pictures/profile/${userid}.avif`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user