1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-26 13:38:52 +00:00

Delete visbility file (if any) when deleting user account image

This commit is contained in:
Pierre HUBERT 2020-03-27 14:49:11 +01:00
parent a6d201868b
commit 2f4b218f6f

View File

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