mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Delete visbility file (if any) when deleting user account image
This commit is contained in:
parent
a6d201868b
commit
2f4b218f6f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user