Issue fixing + deletion of profile & logo

This commit is contained in:
2024-05-17 14:50:50 -05:00
parent 0684b9534f
commit df4e2b00e2
23 changed files with 774 additions and 364 deletions

View File

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