Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Jan 24, 2025
1 parent d3d7ceb commit c502d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
pass_or_acquire_connection,
transaction_context,
)
from sqlalchemy import sql
from sqlalchemy.ext.asyncio import AsyncConnection

from ..db.plugin import get_asyncpg_engine
Expand Down Expand Up @@ -50,7 +51,7 @@ async def patch_project(
return ProjectDB.model_validate(row)


def _select_trashed_by_primary_gid_query():
def _select_trashed_by_primary_gid_query() -> sql.Select:
return sa.select(
users.c.primary_gid.label("trashed_by_primary_gid"),
).select_from(projects.outerjoin(users, projects.c.trashed_by == users.c.id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def get_project_for_user(
and project.get("trashed_by", project.get("trashedBy")) is not None
):
project.update(
trashed_by_primary_gid=await _projects_db.get_trashed_by_primary_gid(
trashedByPrimaryGid=await _projects_db.get_trashed_by_primary_gid(
app, projects_uuid=project["uuid"]
)
)
Expand Down

0 comments on commit c502d7b

Please sign in to comment.