mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-19 08:05:16 +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
|
// Delete meta file
|
||||||
unlinkSync(this.GetPathMetadataFile(userID));
|
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