Skip to content

Commit

Permalink
Fixing authneticated search call
Browse files Browse the repository at this point in the history
  • Loading branch information
bergsalex committed Sep 27, 2024
1 parent 4ca5a06 commit b7b8ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/geneweaver/api/controller/genesets.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def search(
return SearchResponse(
db_search.genesets(
cursor,
is_readable_by=0 if user is None else user.user_id,
is_readable_by=0 if user is None else user.id,
**geneset_search.model_dump(exclude_none=True),
)
)
Expand Down
2 changes: 1 addition & 1 deletion src/geneweaver/api/controller/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def search(
genesets = db_search.genesets(
cursor,
search_text=search_text,
is_readable_by=0 if user is None else user.user_id,
is_readable_by=0 if user is None else user.id,
limit=limit,
offset=offset,
)
Expand Down

0 comments on commit b7b8ab9

Please sign in to comment.