From a2a3fa2f01b11fae0889f46c0e20ec2bad44a9e0 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:20:14 +0200 Subject: [PATCH] fix assertion --- .../src/simcore_service_webserver/projects/_access_rights_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/server/src/simcore_service_webserver/projects/_access_rights_db.py b/services/web/server/src/simcore_service_webserver/projects/_access_rights_db.py index cece8e822fb..0f6a9dafbd3 100644 --- a/services/web/server/src/simcore_service_webserver/projects/_access_rights_db.py +++ b/services/web/server/src/simcore_service_webserver/projects/_access_rights_db.py @@ -16,5 +16,5 @@ async def get_project_owner(engine: Engine, project_uuid: ProjectID) -> UserID: owner_id = await connection.scalar(stmt) if owner_id is None: raise ProjectNotFoundError(project_uuid=project_uuid) - assert isinstance(owner_id, UserID) + assert isinstance(owner_id, int) return owner_id