feat: delete org soft deletes

This commit is contained in:
Chris Milne 2026-06-22 13:53:15 +01:00
parent d395b01997
commit 40918fd8b8

View file

@ -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()