mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-30 17:14:43 +00:00 
			
		
		
		
	Delete visbility file (if any) when deleting user account image
This commit is contained in:
		| @@ -53,7 +53,10 @@ export class AccountImageHelper { | ||||
| 			// Delete meta file | ||||
| 			unlinkSync(this.GetPathMetadataFile(userID)); | ||||
|  | ||||
| 			// TODO : delete visiblity file (if any) | ||||
| 			// Delete visiblity file (if any) | ||||
| 			const visibilityFile = this.GetPathVisibilityFile(userID); | ||||
| 			if(existsSync(visibilityFile)) | ||||
| 				unlinkSync(visibilityFile); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user