Skip to content

Commit 09644ab

Browse files
committed
fixes cancelation errors
1 parent 906a875 commit 09644ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/postgres-database/src/simcore_postgres_database/utils_repos.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import TypeVar
55

66
import sqlalchemy as sa
7+
from pydantic import BaseModel
78
from sqlalchemy.ext.asyncio import AsyncConnection, AsyncEngine
89

910
_logger = logging.getLogger(__name__)
@@ -63,7 +64,7 @@ async def transaction_context(
6364
SQLModel = TypeVar(
6465
# Towards using https://sqlmodel.tiangolo.com/#create-a-sqlmodel-model
6566
"SQLModel",
66-
bound="BaseModel",
67+
bound=BaseModel,
6768
)
6869

6970

services/web/server/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ async def _setup(
234234
"workspaceId": None,
235235
"folderId": None,
236236
"trashedAt": None,
237+
"trashedByPrimaryGid": None,
237238
}
238239
if from_study:
239240
from_study_wo_access_rights = deepcopy(from_study)

0 commit comments

Comments
 (0)