Revert flush - address later
This commit is contained in:
parent
d290857d31
commit
4b2af413dd
1 changed files with 0 additions and 4 deletions
|
|
@ -609,10 +609,6 @@ class UserModel(BaseModel):
|
|||
if detach_artifacts:
|
||||
self._detach_user_artifacts(user.username, user.artifacts, new_owner)
|
||||
|
||||
# Flush all detach operations to database before deleting user
|
||||
# Ensures foreign keys are properly updated and prevents NULL constraint violations
|
||||
self.sa.flush()
|
||||
|
||||
user_data = user.get_dict() # fetch user data before expire
|
||||
|
||||
# we might change the user data with detach/delete, make sure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue