From 40918fd8b8faebc18a3565b9660b41ed6322b5c7 Mon Sep 17 00:00:00 2001 From: luxferre Date: Mon, 22 Jun 2026 13:53:15 +0100 Subject: [PATCH] feat: delete org soft deletes --- src/organisation/router.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/organisation/router.py b/src/organisation/router.py index d968e8e..8bd5ad7 100644 --- a/src/organisation/router.py +++ b/src/organisation/router.py @@ -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()