fix: User avatar not correct cleaned up, closes #7337

This commit is contained in:
Tom Moor
2024-08-01 22:01:22 +01:00
parent 08a6376947
commit bf7fb8aa68

View File

@@ -670,7 +670,7 @@ class User extends ParanoidModel<
if (attachment) {
await DeleteAttachmentTask.schedule({
attachmentId: attachment.id,
teamId: model.id,
teamId: model.teamId,
});
}
}