mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Fix(server) Microservice didn't trigger to remove user (#1090)
This commit is contained in:
parent
651f56370a
commit
2876c7ff97
3 changed files with 14 additions and 4 deletions
|
|
@ -26,9 +26,9 @@ export class UserDeletionProcessor {
|
|||
// just for extra protection here
|
||||
if (userUtils.isReadyForDeletion(user)) {
|
||||
const basePath = APP_UPLOAD_LOCATION;
|
||||
const userAssetDir = join(basePath, user.id)
|
||||
fs.rmSync(userAssetDir, { recursive: true, force: true })
|
||||
await this.assetRepository.delete({ userId: user.id })
|
||||
const userAssetDir = join(basePath, user.id);
|
||||
fs.rmSync(userAssetDir, { recursive: true, force: true });
|
||||
await this.assetRepository.delete({ userId: user.id });
|
||||
await this.userRepository.remove(user);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue