feat: delete org soft deletes
This commit is contained in:
parent
d395b01997
commit
40918fd8b8
1 changed files with 2 additions and 1 deletions
|
|
@ -387,7 +387,8 @@ async def delete_organisation_by_id(
|
|||
"""
|
||||
Removes an organisation from the hub.
|
||||
"""
|
||||
db.delete(org_model)
|
||||
org_model.status = "removed"
|
||||
org_model.deleted_at = datetime.now(tz=timezone.utc)
|
||||
db.commit()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue